mirror of https://github.com/apache/lucene.git
LUCENE-2304: FuzzyLikeThisQuery should set MaxNonCompetitiveBoost for faster speed
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1021483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fad66ad6e5
commit
668ef95427
|
@ -217,6 +217,7 @@ public class FuzzyLikeThisQuery extends Query
|
||||||
variantsQ.insertWithOverflow(st);
|
variantsQ.insertWithOverflow(st);
|
||||||
minScore = variantsQ.top().score; // maintain minScore
|
minScore = variantsQ.top().score; // maintain minScore
|
||||||
}
|
}
|
||||||
|
boostAtt.setMaxNonCompetitiveBoost(variantsQ.size() >= MAX_VARIANTS_PER_TERM ? minScore : Float.NEGATIVE_INFINITY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue