lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search TermScorer.java
Date Wed, 06 Oct 2004 21:01:12 GMT
dnaber      2004/10/06 14:01:12

  Modified:    src/java/org/apache/lucene/search TermScorer.java
  Log:
  call static methods via class, not via object (better style, no functional change)
  
  Revision  Changes    Path
  1.15      +1 -1      jakarta-lucene/src/java/org/apache/lucene/search/TermScorer.java
  
  Index: TermScorer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/TermScorer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TermScorer.java	22 Sep 2004 18:18:27 -0000	1.14
  +++ TermScorer.java	6 Oct 2004 21:01:12 -0000	1.15
  @@ -62,7 +62,7 @@
   
     protected boolean score(HitCollector c, int end) throws IOException {
       Similarity similarity = getSimilarity();      // cache sim in local
  -    float[] normDecoder = similarity.getNormDecoder();
  +    float[] normDecoder = Similarity.getNormDecoder();
       while (doc < end) {                           // for docs in window
         int f = freqs[pointer];
         float score =                               // compute tf(f)*weight
  
  
  

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


Mime
View raw message