elasticsearch-grails-plugin icon indicating copy to clipboard operation
elasticsearch-grails-plugin copied to clipboard

suggest search

Open sergiofm opened this issue 10 years ago • 4 comments

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

sergiofm avatar Sep 14 '14 17:09 sergiofm

I probably won't have time to implement it myself in the near future but I'll gladly accept a pull request.

noamt avatar Sep 23 '14 10:09 noamt

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 avatar Sep 25 '14 03:09 sergiofm

@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.

sircelsius avatar Sep 26 '14 12:09 sircelsius

@sircelsiussexy thanks for the tip! I'll try to test this soon as possible, and maybe I can contribute too.

sergiofm avatar Sep 26 '14 16:09 sergiofm