Class BooleanModifiersQueryNodeProcessor

java.lang.Object
org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
org.apache.lucene.queryparser.flexible.precedence.processors.BooleanModifiersQueryNodeProcessor
All Implemented Interfaces:
QueryNodeProcessor

public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl
This processor is used to apply the correct ModifierQueryNode to BooleanQueryNodes children.

It walks through the query node tree looking for BooleanQueryNodes. If an AndQueryNode is found, every child, which is not a ModifierQueryNode or the ModifierQueryNode is ModifierQueryNode.Modifier.MOD_NONE, becomes a ModifierQueryNode.Modifier.MOD_REQ. For any other BooleanQueryNode which is not an OrQueryNode, it checks the default operator is StandardQueryConfigHandler.Operator.AND, if it is, the same operation when an AndQueryNode is found is applied to it.

See Also: