From cc0fc85fbe24cdaa79a0e96ceb12cdf31d33823e Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Fri, 24 May 2024 17:36:14 +0100 Subject: [PATCH] lucene-monitor: replace wildcard imports (#13413) (cherry picked from commit 40f674c5d3d3321ecb10f5799259409ef29f3035) Resolved Conflicts: lucene/monitor/src/java/org/apache/lucene/monitor/ForceNoBulkScoringQuery.java --- .../apache/lucene/monitor/ForceNoBulkScoringQuery.java | 8 +++++++- .../org/apache/lucene/monitor/ReadonlyQueryIndex.java | 8 +++++++- .../apache/lucene/monitor/SuffixingNGramTokenFilter.java | 6 +++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/ForceNoBulkScoringQuery.java b/lucene/monitor/src/java/org/apache/lucene/monitor/ForceNoBulkScoringQuery.java index a97d1054c4c9..24a133ea2715 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/ForceNoBulkScoringQuery.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/ForceNoBulkScoringQuery.java @@ -20,8 +20,14 @@ import java.io.IOException; import java.util.Objects; import org.apache.lucene.index.LeafReaderContext; -import org.apache.lucene.search.*; +import org.apache.lucene.search.Explanation; +import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.Matches; +import org.apache.lucene.search.Query; +import org.apache.lucene.search.QueryVisitor; +import org.apache.lucene.search.ScoreMode; +import org.apache.lucene.search.Scorer; +import org.apache.lucene.search.Weight; /** Query wrapper that forces its wrapped Query to use the default doc-by-doc BulkScorer. */ class ForceNoBulkScoringQuery extends Query { 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 da5074cfadea..023f51d69ecf 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/ReadonlyQueryIndex.java @@ -22,7 +22,13 @@ import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import org.apache.lucene.index.LeafReaderContext; -import org.apache.lucene.search.*; +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; +import org.apache.lucene.search.Weight; import org.apache.lucene.store.Directory; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.IOUtils; diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/SuffixingNGramTokenFilter.java b/lucene/monitor/src/java/org/apache/lucene/monitor/SuffixingNGramTokenFilter.java index 0709f7999f93..c98cc0c47231 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/SuffixingNGramTokenFilter.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/SuffixingNGramTokenFilter.java @@ -21,7 +21,11 @@ import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenFilter; import org.apache.lucene.analysis.TokenStream; -import org.apache.lucene.analysis.tokenattributes.*; +import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; +import org.apache.lucene.analysis.tokenattributes.KeywordAttribute; +import org.apache.lucene.analysis.tokenattributes.OffsetAttribute; +import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; +import org.apache.lucene.analysis.tokenattributes.PositionLengthAttribute; final class SuffixingNGramTokenFilter extends TokenFilter {