Full text search independently of the order of words

Hi,

Is there any posibility to perform a full-text search independently of the order you type the words?

I want to perform full text search in a field that contains names, and I want to show in the results the right match, but right now if I write :
John Adams Smith

I obtained normally :
John Adams Smith
John Adams John
John Adams Robert
..
Adams John

I want to know if there is any posibility to obtain better score for the correct match but with no dependece with the order you type the query. In this example: Adams John.
The query could be two, three, four ... terms. There is no restriction. And we have in the index names with 1,2,3,4... n terms.

Thanks in advance!

Hello,
The match query supports a minimum_should_match parameter where you can define how many terms have to match in order to consider a document a match.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html

Let me know if that helps or if you have any more questions.

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