elasticsearch-suggest-plugin
elasticsearch-suggest-plugin copied to clipboard
Context support for the suggester
ElasticSearch 1.2 adds the ability to limit suggestions of the build in suggesters to a specific scope. I have no idea how complex it would be, but are there any plans to add this functionality to this plugin?
Hey,
the general idea is, that you should use the context suggester in favor of this plugin. Is there any feature in the completion suggester missing, that prevents you from using it instead?
My use case is the following:
- Words for the suggester are extracted from one title field
- When a user starts typing a word, the suggester should complete the word
- When the user completes a word by typing a space, additional words should be suggested
- All suggestions should return results (so no combination of words should be suggested for which no results exist.)
- We must be able to filter on one specific field. E.g. provide a context.
As far as I know, the above is not possible with the current suggesters in elastic search, but please correct me if I'm wrong. This plugin does all of the above, except that we cannot filter on context.
Hey @spinscale, I'm still struggling with this issue. Could you please inform me if the above use case is more or less possible with the completion suggester?
What I mean is a suggester that will produce Google-like on type autocompletion.
Thank you!
sorry for not getting back, was drowned in work.
On top of my head I dont think that the google-like type autocompletion suggestion currently works with the completion suggester (maybe I am just missing a fancy mapping to make it work, need to think about it a bit more).
I do not have any intention to add filter capabilties to this one, but if you want to give it a spin, feel free to do so, potentially you can reuse some code of the core.