lucene-monitor: remove now-unused Scorable in QueryIndex.DataValues (#13412)

This commit is contained in:
Christine Poerschke 2024-05-24 17:35:55 +01:00 committed by GitHub
parent 9ecf566cca
commit 8dad226afa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 13 deletions

View File

@ -34,7 +34,6 @@ import org.apache.lucene.index.Terms;
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,7 +122,6 @@ abstract class QueryIndex implements Closeable {
SortedDocValues cacheId;
BinaryDocValues mq;
Weight weight;
Scorable scorer;
LeafReaderContext ctx;
int docID;

View File

@ -160,11 +160,6 @@ class ReadonlyQueryIndex extends QueryIndex {
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);

View File

@ -41,7 +41,6 @@ import org.apache.lucene.index.Term;
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 @@ class WritableQueryIndex extends QueryIndex {
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);