Sets the boolean operator of the QueryParser. In default mode (
CopyC#
OR_OPERATOR
) terms without any modifiers are considered optional: for example
CopyC#
capital of Hungary
is equal to
CopyC#
capital OR of OR Hungary
.
In
CopyC#
AND_OPERATOR
mode terms are considered to be in conjunction: the above mentioned query is parsed as
CopyC#
capital AND of AND Hungary

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

Syntax

C#
public virtual void SetDefaultOperator(
	QueryParser..::..Operator op
)
Visual Basic
Public Overridable Sub SetDefaultOperator ( _
	op As QueryParser..::..Operator _
)
Visual C++
public:
virtual void SetDefaultOperator(
	QueryParser..::..Operator^ op
)

Parameters

op
Type: Lucene.Net.QueryParsers..::..QueryParser..::..Operator

[Missing <param name="op"/> documentation for "M:Lucene.Net.QueryParsers.QueryParser.SetDefaultOperator(Lucene.Net.QueryParsers.QueryParser.Operator)"]

See Also