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:
Robert Muir 2010-10-11 19:43:45 +00:00
parent fad66ad6e5
commit 668ef95427
1 changed files with 1 additions and 0 deletions

View File

@ -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);
} }
} }