elasticsearch-grails-plugin
elasticsearch-grails-plugin copied to clipboard
suggest search
Is it possible to write a suggest query using de plugin? If it's possoble, how do I do that? If it's not, would be nice to have something like the searcheable plugin have: https://grails.org/Searchable+Plugin+-+Methods+-+suggestQuery
Here's the elasticsearch docs about suggest querys: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html
I probably won't have time to implement it myself in the near future but I'll gladly accept a pull request.
The search part is possible to do using the java api, but this kind of search needs some index settings like analyzers and filters.
@sergiofm There is a pending PR (#49) that implements suggestions. It hasn't been merged and (as far as I know) hasn't been tested, so use it at your own risk.
@sircelsiussexy thanks for the tip! I'll try to test this soon as possible, and maybe I can contribute too.