BooleanModifiersQueryNodeProcessor

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 Operator.AND, if it is, the same operation when an AndQueryNode is found is applied to it.

See also

PrecedenceQueryParser.setDefaultOperator

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Sets and returns the QueryConfigHandler associated to the query tree.

Functions

Link copied to clipboard
open override fun process(queryTree: QueryNode): QueryNode

Processes a query node tree. It may return the same or another query tree. I should never return null.