lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: is there a historical reason why default conjunction operator is "OR"?
Date Wed, 16 Apr 2014 16:54:56 GMT

: I  recently wondered,
: why lucene's default conjunction operator is "OR".
: Is there a historical reason for that?

The only 'default' is in the query parser -- if you construct the 
BooleanQueyr objects programatically you must always be explicit about the 
Occur property of each Clause.

In the parser the default is "OR" aka "SHOULD" because the prefix operator 
syntax has no operator for "SHOULD" ... 

  "+" => MUST
  "-" => MUST_NOT, 
  absense of an operator => "SHOULD"


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message