lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Number of Boolean Clauses (AND vs OR)
Date Mon, 11 Apr 2011 19:39:59 GMT
I believe AND will be faster, at least in cases when one of the earlier clauses 
doesn't actually match any docs, in which case the whole query should terminate 
early and not evaluate the remaining clauses.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: entdeveloper <cameron.developer@gmail.com>
> To: general@lucene.apache.org
> Sent: Mon, April 11, 2011 2:50:28 PM
> Subject: Number of Boolean Clauses (AND vs OR)
> 
> Does the type of boolean clause matter for a good number of boolean  clauses?
> In other words, if I have a query with 20 boolean clauses, will 20  OR
> clauses perform any faster or slower than 20 AND clauses? 
> 
> I know  these would perform completely different queries, but I am asking on
> a  theoretical level. Obviously the total number matters, hence the limit  of
> 1024 max boolean clauses
> 
> --
> View this message in context: 
>http://lucene.472066.n3.nabble.com/Number-of-Boolean-Clauses-AND-vs-OR-tp2807905p2807905.html
>
> Sent  from the Lucene - General mailing list archive at Nabble.com.
> 

Mime
View raw message