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 BooleanScorer.java
Date Tue, 11 May 2004 19:59:51 GMT
cutting     2004/05/11 12:59:51

  Modified:    src/java/org/apache/lucene/search BooleanScorer.java
  Log:
  Removed dead code, as noted by Paul Elschot.
  
  Revision  Changes    Path
  1.9       +0 -15     jakarta-lucene/src/java/org/apache/lucene/search/BooleanScorer.java
  
  Index: BooleanScorer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/BooleanScorer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BooleanScorer.java	11 May 2004 17:18:03 -0000	1.8
  +++ BooleanScorer.java	11 May 2004 19:59:51 -0000	1.9
  @@ -148,21 +148,6 @@
         this.scorer = scorer;
       }
   
  -    public final void collectHits(HitCollector results) {
  -      final int required = scorer.requiredMask;
  -      final int prohibited = scorer.prohibitedMask;
  -      final float[] coord = scorer.coordFactors;
  -
  -      for (Bucket bucket = first; bucket!=null; bucket = bucket.next) {
  -	if ((bucket.bits & prohibited) == 0 &&	  // check prohibited
  -	    (bucket.bits & required) == required){// check required
  -	  results.collect(bucket.doc,		  // add to results
  -			  bucket.score * coord[bucket.coord]);
  -	}
  -      }
  -      first = null;				  // reset for next round
  -    }
  -
       public final int size() { return SIZE; }
   
       public HitCollector newCollector(int mask) {
  
  
  

---------------------------------------------------------------------
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