VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

Autocomplete suggestions are strange #85

Open VeggieMeat opened 8 years ago

VeggieMeat commented 8 years ago

Original issue: https://www.drupal.org/node/2607522

I've been switching a project from using Apachesolr to Search API + ES, using this module. Generally, search works well, but the autocomplete suggestions are weird.

IE, what happens with apachesolr_autocomplete is that words get completed, and then the next most popular word in the content that contains the current search terms gets suggested.

What the autocomplete integration in this module seems to do is run a search and then use the titles from those search results as the autocomplete suggestions. I've attached a screenshot of what it's doing. In this example I've search for horse, and the autocomplete suggestions are the titles of nodes in the site that contain the word "horse". Then when you click on one of those suggestions you end up running a search for the title, resulting in results completely unrelated to the word "horse".

What I'd really like to see here is something more along the lines of how apachesolr_autocomplete works, which you can see here: http://cgit.drupalcode.org/apachesolr_autocomplete/tree/apachesolr_autoc...

Would this be possible / accepted / etc? My company's interested in generally switching from Solr to ES, so we'd be able to help out with the work, given some advice.

Thanks!