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:
Doug Cutting 2002-09-03 21:13:32 +00:00
parent 63f7272924
commit f65bc68dfc
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public class PhraseQuery extends Query {
}
final float sumOfSquaredWeights(Searcher searcher) throws IOException {
idf = 0.0f;
for (int i = 0; i < terms.size(); i++) // sum term IDFs
idf += Similarity.idf((Term)terms.elementAt(i), searcher);