mirror of https://github.com/apache/lucene.git
Fixed bug 12273
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149836 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
63f7272924
commit
f65bc68dfc
|
@ -108,6 +108,7 @@ public class PhraseQuery extends Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
final float sumOfSquaredWeights(Searcher searcher) throws IOException {
|
final float sumOfSquaredWeights(Searcher searcher) throws IOException {
|
||||||
|
idf = 0.0f;
|
||||||
for (int i = 0; i < terms.size(); i++) // sum term IDFs
|
for (int i = 0; i < terms.size(); i++) // sum term IDFs
|
||||||
idf += Similarity.idf((Term)terms.elementAt(i), searcher);
|
idf += Similarity.idf((Term)terms.elementAt(i), searcher);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue