{if (true) return new BooleanQueryNode(clauses);} } else { ModifierQueryNode m = (ModifierQueryNode) first; if (m.getModifier() == ModifierQueryNode.Modifier.MOD_NOT) { {if (true) return new BooleanQueryNode(Arrays.<QueryNode> asList(m));}
{if (true) return new BooleanQueryNode(clauses);} } else { ModifierQueryNode m = (ModifierQueryNode) first; if (m.getModifier() == ModifierQueryNode.Modifier.MOD_NOT) { {if (true) return new BooleanQueryNode(Arrays.<QueryNode> asList(m));}
{if (true) return new BooleanQueryNode(clauses);} } else { {if (true) return first;}
{if (true) return new BooleanQueryNode(clauses);} } else { {if (true) return first;}
@Override public QueryNode process(QueryNode queryTree) throws QueryNodeException { Operator defaultOperator = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR); if (defaultOperator == null) { throw new IllegalArgumentException( "DEFAULT_OPERATOR should be set on the QueryConfigHandler"); } this.usingAnd = StandardQueryConfigHandler.Operator.AND == defaultOperator; if (queryTree instanceof GroupQueryNode) { queryTree = ((GroupQueryNode) queryTree).getChild(); } this.queryNodeList = new ArrayList<>(); this.latestNodeVerified = false; readTree(queryTree); List<QueryNode> actualQueryNodeList = this.queryNodeList; for (int i = 0; i < actualQueryNodeList.size(); i++) { QueryNode node = actualQueryNodeList.get(i); if (node instanceof GroupQueryNode) { actualQueryNodeList.set(i, process(node)); } } this.usingAnd = false; if (queryTree instanceof BooleanQueryNode) { queryTree.set(actualQueryNodeList); return queryTree; } else { return new BooleanQueryNode(actualQueryNodeList); } }
@Override public QueryNode process(QueryNode queryTree) throws QueryNodeException { Operator defaultOperator = getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR); if (defaultOperator == null) { throw new IllegalArgumentException( "DEFAULT_OPERATOR should be set on the QueryConfigHandler"); } this.usingAnd = StandardQueryConfigHandler.Operator.AND == defaultOperator; if (queryTree instanceof GroupQueryNode) { queryTree = ((GroupQueryNode) queryTree).getChild(); } this.queryNodeList = new ArrayList<>(); this.latestNodeVerified = false; readTree(queryTree); List<QueryNode> actualQueryNodeList = this.queryNodeList; for (int i = 0; i < actualQueryNodeList.size(); i++) { QueryNode node = actualQueryNodeList.get(i); if (node instanceof GroupQueryNode) { actualQueryNodeList.set(i, process(node)); } } this.usingAnd = false; if (queryTree instanceof BooleanQueryNode) { queryTree.set(actualQueryNodeList); return queryTree; } else { return new BooleanQueryNode(actualQueryNodeList); } }
@Override public QueryNode process(final QueryNode queryTree) throws QueryNodeException { final TopLevelQueryNode top = (TopLevelQueryNode) queryTree; if (this.getQueryConfigHandler().has(KeywordConfigurationKeys.ALLOW_TWIG)) { if (!this.getQueryConfigHandler().get(KeywordConfigurationKeys.ALLOW_TWIG)) { // Wraps the children into a BooleanQueryNode, so that the parent // pointers are correct. // This relies on the BooleanSingleChildOptimizationQueryNodeProcessor return new BooleanQueryNode(top.getChildren()); } } else { throw new IllegalArgumentException("KeywordConfigurationKeys.ALLOW_TWIG should be set on the ExtendedKeywordQueryConfigHandler"); } return queryTree; }
@Override public QueryNode process(final QueryNode queryTree) throws QueryNodeException { final TopLevelQueryNode top = (TopLevelQueryNode) queryTree; if (this.getQueryConfigHandler().has(KeywordConfigurationKeys.ALLOW_TWIG)) { if (!this.getQueryConfigHandler().get(KeywordConfigurationKeys.ALLOW_TWIG)) { // Wraps the children into a BooleanQueryNode, so that the parent // pointers are correct. // This relies on the BooleanSingleChildOptimizationQueryNodeProcessor return new BooleanQueryNode(top.getChildren()); } } else { throw new IllegalArgumentException("KeywordConfigurationKeys.ALLOW_TWIG should be set on the KeywordQueryConfigHandler"); } return queryTree; }
public QueryNode process(QueryNode queryTree) throws QueryNodeException { if (!this.getQueryConfigHandler().has(ConfigurationKeys.DEFAULT_OPERATOR)) { throw new IllegalArgumentException("DEFAULT_OPERATOR should be set on the QueryConfigHandler"); } this.usingAnd = Operator.AND == this.getQueryConfigHandler().get(ConfigurationKeys.DEFAULT_OPERATOR) ? true : false; if (queryTree instanceof GroupQueryNode) { queryTree = ((GroupQueryNode) queryTree).getChild(); } this.queryNodeList = new ArrayList<QueryNode>(); this.latestNodeVerified = false; this.readTree(queryTree); if (queryTree instanceof BooleanQueryNode) { queryTree.set(this.queryNodeList); return queryTree; } else { return new BooleanQueryNode(this.queryNodeList); } }
public QueryNode process(QueryNode queryTree) throws QueryNodeException { if (!this.getQueryConfigHandler().has(ConfigurationKeys.DEFAULT_OPERATOR)) { throw new IllegalArgumentException( "DEFAULT_OPERATOR should be set on the QueryConfigHandler"); } this.usingAnd = Operator.AND == this.getQueryConfigHandler() .get(ConfigurationKeys.DEFAULT_OPERATOR) ? true : false; if (queryTree instanceof GroupQueryNode) { queryTree = ((GroupQueryNode) queryTree).getChild(); } this.queryNodeList = new ArrayList<QueryNode>(); this.latestNodeVerified = false; this.readTree(queryTree); if (queryTree instanceof BooleanQueryNode) { queryTree.set(this.queryNodeList); return queryTree; } else { return new BooleanQueryNode(this.queryNodeList); } }