Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in. Can be overridden by extending classes, to modify query being returned.

Namespace: Lucene.Net.QueryParsers
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
protected internal virtual Query GetBooleanQuery(
	IList clauses
)
Visual Basic
Protected Friend Overridable Function GetBooleanQuery ( _
	clauses As IList _
) As Query
Visual C++
protected public:
virtual Query^ GetBooleanQuery(
	IList^ clauses
)

Parameters

clauses
Type: System.Collections..::..IList
List that contains {@link BooleanClause} instances to join.

Return Value

Resulting {@link Query} object.

Exceptions

ExceptionCondition
Lucene.Net.QueryParsers..::..ParseExceptionthrow in overridden method to disallow

See Also