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