From 409e4198677c67dd18a73a014ebb3dabe9a25867 Mon Sep 17 00:00:00 2001 From: Mingshi Liu Date: Fri, 30 Dec 2022 11:04:27 -0800 Subject: [PATCH] linting Signed-off-by: Mingshi Liu --- .../main/java/org/opensearch/index/search/MatchQuery.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/search/MatchQuery.java b/server/src/main/java/org/opensearch/index/search/MatchQuery.java index 1145495133767..bad9eeaee11d2 100644 --- a/server/src/main/java/org/opensearch/index/search/MatchQuery.java +++ b/server/src/main/java/org/opensearch/index/search/MatchQuery.java @@ -82,8 +82,6 @@ import static org.opensearch.common.lucene.search.Queries.newUnmappedFieldQuery; import java.util.logging.Logger; - - /** * Foundation match query * @@ -139,10 +137,8 @@ public void writeTo(StreamOutput out) throws IOException { /** * logging function */ - private static final Logger logger = Logger.getLogger((MatchQuery.class.getName())); - /** * Query with zero terms * @@ -746,14 +742,10 @@ private Query analyzePhrasePrefix(String field, TokenStream stream, int slop, in } } - - private Query analyzeGraphBoolean(String field, TokenStream source, BooleanClause.Occur operator, boolean isPrefix) throws IOException { source.reset(); GraphTokenStreamFiniteStrings graph = new GraphTokenStreamFiniteStrings(source); - logger.info("\n check the source" + source); - logger.info("\n check the GraphTokenStreamFiniteStrings" + graph); BooleanQuery.Builder builder = new BooleanQuery.Builder(); int[] articulationPoints = graph.articulationPoints(); int lastState = 0;