Apache Lucene.Net 2.4.0 Class Library API

QueryParser.SetDefaultOperator Method 

Sets the boolean operator of the QueryParser. In default mode (

OR_OPERATOR
) terms without any modifiers are considered optional: for example
capital of Hungary
is equal to
capital OR of OR Hungary
.
In
AND_OPERATOR
mode terms are considered to be in conjuction: the above mentioned query is parsed as
capital AND of AND Hungary

public virtual void SetDefaultOperator(
   Operator op
);

See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace