Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
  • Loading branch information
mingshl committed Dec 30, 2022
1 parent 6c8ce02 commit 409e419
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@
import static org.opensearch.common.lucene.search.Queries.newUnmappedFieldQuery;

import java.util.logging.Logger;


/**
* Foundation match query
*
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 409e419

Please sign in to comment.