lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search PhraseQuery.java
Date Tue, 03 Sep 2002 21:13:32 GMT
cutting     2002/09/03 14:13:32

  Modified:    src/java/org/apache/lucene/search PhraseQuery.java
  Log:
  Fixed bug 12273
  
  Revision  Changes    Path
  1.5       +1 -0      jakarta-lucene/src/java/org/apache/lucene/search/PhraseQuery.java
  
  Index: PhraseQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/PhraseQuery.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PhraseQuery.java	17 Jul 2002 17:38:04 -0000	1.4
  +++ PhraseQuery.java	3 Sep 2002 21:13:32 -0000	1.5
  @@ -108,6 +108,7 @@
     }
   
     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);
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message