DotLucene 1.4 API Documentation |

# QueryParser.SetOperator Method

Sets the boolean operator of the QueryParser. In classic mode (`DEFAULT_OPERATOR_OR`) terms without any modifiers are considered optional: for example `capital of Hungary` is equal to `capital OR of OR Hungary`.
In `DEFAULT_OPERATOR_AND` terms are considered to be in conjuction: the above mentioned query is parsed as `capital AND of AND Hungary`

public virtual void SetOperator(
int operator_Renamed
);

#### See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace