Actually i red minimum_should_match and i red again when you said But in this case, think that a,b,c,d,e & g is dynamic. So i cant decide which one is required. Am i missing something ? Or should i try something else?
Sorry bothering you but the last thing that i didnt mention is Querystring can have more than 5 and docs also can have variables in different numbers. So i think 80% minimum should match wouldnt work
I am doing something wrong this is what i need to solve,
Doc 1 and Doc 2 have different numbers of variables, when i query on them with Match query the only thing i want to get that matches the **most** with QueryString.
Doc 1 Doc 2 QueryString
----------- ---------- -----------------
a a a
b b b
c c c
d e d
r v g
z e
... f
...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.