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,
	bool disableCoord
)
Visual Basic
Protected Friend Overridable Function GetBooleanQuery ( _
	clauses As IList, _
	disableCoord As Boolean _
) As Query
Visual C++
protected public:
virtual Query^ GetBooleanQuery(
	IList^ clauses, 
	bool disableCoord
)

Parameters

clauses
Type: System.Collections..::..IList
List that contains {@link BooleanClause} instances to join.
disableCoord
Type: System..::..Boolean
true if coord scoring should be disabled.

Return Value

Resulting {@link Query} object.

Exceptions

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

See Also