From 64f981fc32c823dfad880b6dccb872589f96fa84 Mon Sep 17 00:00:00 2001 From: Alex Ksikes Date: Mon, 13 Jul 2015 17:31:57 +0200 Subject: [PATCH] Fix rewrite set twice in WildcardQueryParser Closes #12207 --- .../java/org/elasticsearch/index/query/WildcardQueryParser.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/index/query/WildcardQueryParser.java b/core/src/main/java/org/elasticsearch/index/query/WildcardQueryParser.java index 6b89d9e2fbe..da92db4ea46 100644 --- a/core/src/main/java/org/elasticsearch/index/query/WildcardQueryParser.java +++ b/core/src/main/java/org/elasticsearch/index/query/WildcardQueryParser.java @@ -103,7 +103,6 @@ public class WildcardQueryParser implements QueryParser { WildcardQuery wildcardQuery = new WildcardQuery(new Term(fieldName, valueBytes)); QueryParsers.setRewriteMethod(wildcardQuery, parseContext.parseFieldMatcher(), rewriteMethod); - wildcardQuery.setRewriteMethod(QueryParsers.parseRewriteMethod(parseContext.parseFieldMatcher(), rewriteMethod)); wildcardQuery.setBoost(boost); if (queryName != null) { parseContext.addNamedQuery(queryName, wildcardQuery);