Class GroupQueryNodeProcessor
The ISyntaxParser generates query node trees that consider the boolean operator precedence, but Lucene current syntax does not support boolean precedence, so this processor remove all the precedence and apply the equivalent modifier according to the boolean operation defined on an specific query node.
If there is a GroupQueryNode in the query node tree, the query node tree is not merged with the one above it. Example: TODO: describe a good example to show how this processor worksImplements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Processors
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Obsolete("Use BooleanQuery2ModifierNodeProcessor instead")]
public class GroupQueryNodeProcessor : IQueryNodeProcessor
Constructors
GroupQueryNodeProcessor()
The ISyntaxParser generates query node trees that consider the boolean operator precedence, but Lucene current syntax does not support boolean precedence, so this processor remove all the precedence and apply the equivalent modifier according to the boolean operation defined on an specific query node.
If there is a GroupQueryNode in the query node tree, the query node tree is not merged with the one above it. Example: TODO: describe a good example to show how this processor worksDeclaration
public GroupQueryNodeProcessor()
See Also
Methods
GetQueryConfigHandler()
Returns the QueryConfigHandler associated to the query tree if any,
otherwise it returns null
Declaration
public virtual QueryConfigHandler GetQueryConfigHandler()
Returns
Type | Description |
---|---|
QueryConfigHandler | the QueryConfigHandler associated to the query tree if any,
otherwise it returns |
See Also
Process(IQueryNode)
Processes a query node tree. It may return the same or another query tree.
I should never return null
.
Declaration
public virtual IQueryNode Process(IQueryNode queryTree)
Parameters
Type | Name | Description |
---|---|---|
IQueryNode | queryTree | tree root node |
Returns
Type | Description |
---|---|
IQueryNode | the processed query tree |
See Also
SetQueryConfigHandler(QueryConfigHandler)
Sets the QueryConfigHandler associated to the query tree.
Declaration
public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Parameters
Type | Name | Description |
---|---|---|
QueryConfigHandler | queryConfigHandler |