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. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]