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

This processor removes every IQueryNode that is not a leaf and has not children. If after processing the entire tree the root node is not a leaf and has no children, a MatchNoDocsQueryNode object is returned. This processor is used at the end of a pipeline to avoid invalid query node tree structures like a GroupQueryNode or ModifierQueryNode with no children.
Inheritance: QueryNodeProcessorImpl
Afficher le fichier Open project: apache/lucenenet

Méthodes publiques

Méthode Description
Process ( IQueryNode queryTree ) : IQueryNode
RemoveEmptyNonLeafQueryNodeProcessor ( ) : Lucene.Net.QueryParsers.Flexible.Core.Nodes

Méthodes protégées

Méthode Description
PostProcessNode ( IQueryNode node ) : IQueryNode
PreProcessNode ( IQueryNode node ) : IQueryNode
SetChildrenOrder ( IList children ) : IList

Method Details

PostProcessNode() protected méthode

protected PostProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Résultat IQueryNode

PreProcessNode() protected méthode

protected PreProcessNode ( IQueryNode node ) : IQueryNode
node IQueryNode
Résultat IQueryNode

Process() public méthode

public Process ( IQueryNode queryTree ) : IQueryNode
queryTree IQueryNode
Résultat IQueryNode

RemoveEmptyNonLeafQueryNodeProcessor() public méthode

public RemoveEmptyNonLeafQueryNodeProcessor ( ) : Lucene.Net.QueryParsers.Flexible.Core.Nodes
Résultat Lucene.Net.QueryParsers.Flexible.Core.Nodes

SetChildrenOrder() protected méthode

protected SetChildrenOrder ( IList children ) : IList
children IList
Résultat IList