lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1657876 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java
Date Fri, 06 Feb 2015 16:03:00 GMT
Author: jpountz
Date: Fri Feb  6 16:02:59 2015
New Revision: 1657876

URL: http://svn.apache.org/r1657876
Log:
LUCENE-6220: Remove needsScores from FilterStrategy.

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java?rev=1657876&r1=1657875&r2=1657876&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/FilteredQuery.java Fri
Feb  6 16:02:59 2015
@@ -136,7 +136,7 @@ public class FilteredQuery extends Query
           return null;
         }
 
-        return strategy.filteredBulkScorer(context, weight, filterDocIdSet, needsScores);
+        return strategy.filteredBulkScorer(context, weight, filterDocIdSet);
 
       }
     };
@@ -452,7 +452,7 @@ public class FilteredQuery extends Query
      * @return a filtered top scorer
      */
     public BulkScorer filteredBulkScorer(LeafReaderContext context,
-        Weight weight, DocIdSet docIdSet, boolean needsScores) throws IOException {
+        Weight weight, DocIdSet docIdSet) throws IOException {
       Scorer scorer = filteredScorer(context, weight, docIdSet);
       if (scorer == null) {
         return null;
@@ -573,12 +573,12 @@ public class FilteredQuery extends Query
 
     @Override
     public BulkScorer filteredBulkScorer(final LeafReaderContext context,
-        Weight weight, DocIdSet docIdSet, boolean needsScores) throws IOException {
+        Weight weight, DocIdSet docIdSet) throws IOException {
       Bits filterAcceptDocs = docIdSet.bits();
       if (filterAcceptDocs == null) {
         // Filter does not provide random-access Bits; we
         // must fallback to leapfrog:
-        return LEAP_FROG_QUERY_FIRST_STRATEGY.filteredBulkScorer(context, weight, docIdSet,
needsScores);
+        return LEAP_FROG_QUERY_FIRST_STRATEGY.filteredBulkScorer(context, weight, docIdSet);
       }
       final Scorer scorer = weight.scorer(context, null);
       return scorer == null ? null : new QueryFirstBulkScorer(scorer, filterAcceptDocs);



Mime
View raw message