diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/QueryIndex.java b/lucene/monitor/src/java/org/apache/lucene/monitor/QueryIndex.java index 148bae5f31b1..f611926fb354 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/QueryIndex.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/QueryIndex.java @@ -34,7 +34,6 @@ import org.apache.lucene.index.TermsEnum; import org.apache.lucene.search.MatchAllDocsQuery; import org.apache.lucene.search.Query; -import org.apache.lucene.search.Scorable; import org.apache.lucene.search.ScoreMode; import org.apache.lucene.search.SearcherManager; import org.apache.lucene.search.TermQuery; @@ -123,12 +122,10 @@ public static final class DataValues { SortedDocValues cacheId; BinaryDocValues mq; Weight weight; - Scorable scorer; LeafReaderContext ctx; int docID; void advanceTo(int doc) throws IOException { - assert scorer.docID() == doc; queryId.advanceExact(doc); cacheId.advanceExact(doc); if (mq != null) { diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java b/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java index 023f51d69ecf..35a8e069821c 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java @@ -24,7 +24,6 @@ import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.Query; -import org.apache.lucene.search.Scorable; import org.apache.lucene.search.ScoreMode; import org.apache.lucene.search.SearcherManager; import org.apache.lucene.search.SimpleCollector; @@ -166,11 +165,6 @@ public void setWeight(Weight weight) { this.dataValues.weight = weight; } - @Override - public void setScorer(Scorable scorer) { - this.dataValues.scorer = scorer; - } - @Override public void collect(int doc) throws IOException { dataValues.advanceTo(doc); diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/WritableQueryIndex.java b/lucene/monitor/src/java/org/apache/lucene/monitor/WritableQueryIndex.java index 688070a0961f..b51ad40d9c4b 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/WritableQueryIndex.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/WritableQueryIndex.java @@ -41,7 +41,6 @@ import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.MatchAllDocsQuery; import org.apache.lucene.search.Query; -import org.apache.lucene.search.Scorable; import org.apache.lucene.search.ScoreMode; import org.apache.lucene.search.SearcherManager; import org.apache.lucene.search.SimpleCollector; @@ -369,11 +368,6 @@ public void setWeight(Weight weight) { this.dataValues.weight = weight; } - @Override - public void setScorer(Scorable scorer) { - this.dataValues.scorer = scorer; - } - @Override public void collect(int doc) throws IOException { dataValues.advanceTo(doc);