mirror of https://github.com/apache/lucene.git
Fix if clause in MultiTermRewriteMethodProcessor
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806456 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5a40767d67
commit
82c8a2ffc2
|
@ -37,8 +37,7 @@ public class MultiTermRewriteMethodProcessor extends QueryNodeProcessorImpl {
|
|||
protected QueryNode postProcessNode(QueryNode node) {
|
||||
|
||||
// set setMultiTermRewriteMethod for WildcardQueryNode and PrefixWildcardQueryNode
|
||||
if (node instanceof WildcardQueryNode || node instanceof ParametricRangeQueryNode
|
||||
|| node instanceof ParametricRangeQueryNode) {
|
||||
if (node instanceof WildcardQueryNode || node instanceof ParametricRangeQueryNode) {
|
||||
|
||||
if (!getQueryConfigHandler().hasAttribute(MultiTermRewriteMethodAttribute.class)) {
|
||||
// This should not happen, this attribute is created in the StandardQueryConfigHandler
|
||||
|
|
Loading…
Reference in New Issue