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#
[ObsoleteAttribute("use GetBooleanQuery(List, bool) instead")]
protected internal virtual Query GetBooleanQuery(
	ArrayList clauses,
	bool disableCoord
)
Visual Basic
<ObsoleteAttribute("use GetBooleanQuery(List, bool) instead")> _
Protected Friend Overridable Function GetBooleanQuery ( _
	clauses As ArrayList, _
	disableCoord As Boolean _
) As Query
Visual C++
[ObsoleteAttribute(L"use GetBooleanQuery(List, bool) instead")]
protected public:
virtual Query^ GetBooleanQuery(
	ArrayList^ clauses, 
	bool disableCoord
)

Parameters

clauses
Type: System.Collections..::..ArrayList
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