diff --git a/server/src/main/java/org/opensearch/index/search/QueryStringQueryParser.java b/server/src/main/java/org/opensearch/index/search/QueryStringQueryParser.java index d2e1979e76985..898fb248603ac 100644 --- a/server/src/main/java/org/opensearch/index/search/QueryStringQueryParser.java +++ b/server/src/main/java/org/opensearch/index/search/QueryStringQueryParser.java @@ -729,7 +729,6 @@ private Query getWildcardQuerySingle(String field, String termStr) throws ParseE throw new ParseException("'*' or '?' not allowed as first character in WildcardQuery"); } return super.getWildcardQuery(indexedNameField, termStr); - // return currentFieldType.wildcardQuery(termStr, getMultiTermRewriteMethod(), context); } catch (RuntimeException e) { if (lenient) { return newLenientFieldQuery(field, e);