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

This processor is used to expand terms so the query looks for the same term in different fields. It also boosts a query based on its field. This processor looks for every IFieldableNode contained in the query node tree. If a IFieldableNode is found, it checks if there is a ConfigurationKeys.MULTI_FIELDS defined in the Core.Config.QueryConfigHandler. If there is, the IFieldableNode is cloned N times and the clones are added to a BooleanQueryNode together with the original node. N is defined by the number of fields that it will be expanded to. The BooleanQueryNode is returned.
Inheritance: QueryNodeProcessorImpl
Mostrar archivo Open project: apache/lucenenet

Public Methods

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

Protected Methods

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

Method Details

MultiFieldQueryNodeProcessor() public method

public MultiFieldQueryNodeProcessor ( ) : 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

ProcessChildren() protected method

protected ProcessChildren ( IQueryNode queryTree ) : void
queryTree IQueryNode
return void

SetChildrenOrder() protected method

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