Enforce no match if term in search is duplicated

I noticed that if I replicate a term in the search expression, the relevance of documents containing it only once will increase. Though my expected behavior is to omit them from the results.

Eg
doc 1 :Fred Fredrickson
doc2: Fred Waters

search term: fred fred
I want doc1 but not doc2.

How to achieve this? My index is standard+ngrams and I use AND operatior for ngrams macthing and bool+must for full word matching

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