lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: Query Tuning
Date Mon, 21 Feb 2005 19:16:59 GMT
On Monday 21 February 2005 19:59, Runde, Kevin wrote:
> Hi All,
> How does Lucene handle multi term queries? Does it use short circuiting?
> So if a user entered:
> (a OR b) AND c
> But my program knew testing for "c" is cheaper than testing for "(a OR
> b)" and I rewrote the query as:
> c AND (a OR b)
> Would the query run faster?

Exchanging the operands of AND would not make a noticeable difference
in speed. Queries are evaluated by iterating the inverted term index entries
for all query terms  in parallel, with buffering.

Paul Elschot

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

View raw message