lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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"


-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message