Search by word order

Hello

I have a product search system. Now I want the system to be such that if the user searches for the word "washing machine", priority will be given to products whose name starts with "washing machine" and displays them above other products.

But whatever I do, it seems that Elasticsearch does not matter to him, that the product name must start with "washing machine", and for Elasticsearch, it only matters that the two words "machine" and "washing" are connected. Now he wants to be in the middle of the product name. Or the end of the product name

I used wildcard, prefix, match_phrase_prefix but it didn't work

I used search_as_you_type but could not find it

Anyone have a solution?

Hi Amir,
When there are preferred variations of match types they can be arranged inside a bool query's
should array with appropriate boost settings on them.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.