Add explanation about minimum should match and coordination factor

This commit is contained in:
Jim Ferenczi 2016-01-19 16:04:09 +01:00
parent 2d4d1a943b
commit b9f1c7242c
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ public class Queries {
if (minimumShouldMatch == null) {
return query;
}
// Queries with a single word expanded with synonyms
// have their coordination factor disabled (@see org.apache.lucene.util.QueryBuilder#analyzeBoolean()).
// minimumShouldMatch should not be applicable in such case.
if (query.isCoordDisabled()) {
return query;
}