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:
Michael Busch 2009-08-21 08:36:31 +00:00
parent 5a40767d67
commit 82c8a2ffc2
1 changed files with 1 additions and 2 deletions

View File

@ -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