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