C# Class Lucene.Net.QueryParsers.Flexible.Standard.Processors.BooleanSingleChildOptimizationQueryNodeProcessor

This processor removes every BooleanQueryNode that contains only one child and returns this child. If this child is ModifierQueryNode that was defined by the user. A modifier is not defined by the user when it's a BooleanModifierNode
Inheritance: QueryNodeProcessorImpl
Mostra file Open project: apache/lucenenet

Public Methods

Method Description
BooleanSingleChildOptimizationQueryNodeProcessor ( ) : Lucene.Net.QueryParsers.Flexible.Core.Nodes

Protected Methods

Method Description
PostProcessNode ( IQueryNode node ) : IQueryNode
PreProcessNode ( IQueryNode node ) : IQueryNode
SetChildrenOrder ( IList children ) : IList

Method Details

BooleanSingleChildOptimizationQueryNodeProcessor() public method

public BooleanSingleChildOptimizationQueryNodeProcessor ( ) : Lucene.Net.QueryParsers.Flexible.Core.Nodes
return Lucene.Net.QueryParsers.Flexible.Core.Nodes

PostProcessNode() protected method

protected PostProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
return IQueryNode

PreProcessNode() protected method

protected PreProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
return IQueryNode

SetChildrenOrder() protected method

protected SetChildrenOrder ( IList children ) : IList
children IList
return IList