Sets the boolean operator of the QueryParser.
In default mode () terms without any modifiers
are considered optional: for example is equal to
.
In mode terms are considered to be in conjunction: the
above mentioned query is parsed as
Namespace: Lucene.Net.QueryParsersCopyC#
OR_OPERATOR
CopyC#
capital of Hungary
CopyC#
capital OR of OR Hungary
In
CopyC#
AND_OPERATOR
CopyC#
capital AND of AND Hungary
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)"]