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

Parameters

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