Hello,
I want to write Autocomplete using Elasticsearch.
I use Completion Suggesters and I have problems with it.
For example
I have fullName and title fields
"fullName": "John Smith"
"title": "Python Developer"
Both fields type is "completion"
My suggested text query is - "Smith"
And I got 0 results
I tried to reverse index
"Smith John"
but there I got the opposite result ("Smith John") and not the original ("John Smith").
I know that happens because Completion Suggesters is prefix based
So, what is the best way to get "John Smith" when I search "Smith" using Completion Suggesters?
Btw, the "title" field is because I want to search on both fields.
For example -
"fullName": "Mike Devqon"
"title": "Python Developer"
My suggested text query is - "Dev"
I want to get
"Python Developer" and "Mike Devqon"
It is important to note that I am not interested in receiving results of full documents and then looking for a way to extract the relevant values from it using highlight for example.
Thank you.