From 8dad226afa8866ac354a8fec1371cc3ee976c460 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Fri, 24 May 2024 17:35:55 +0100 Subject: [PATCH] lucene-monitor: remove now-unused Scorable in QueryIndex.DataValues (#13412) --- .../src/java/org/apache/lucene/monitor/QueryIndex.java | 2 -- .../java/org/apache/lucene/monitor/ReadonlyQueryIndex.java | 5 ----- .../java/org/apache/lucene/monitor/WritableQueryIndex.java | 6 ------ 3 files changed, 13 deletions(-) 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 6e6a67f121d..f611926fb35 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.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; 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 da5074cfade..5da043443b3 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java @@ -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); 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 688070a0961..b51ad40d9c4 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.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);