Daniel,

Do you have some performance numbers to go with this?

One thing I'd love to see is some JUnitPerf tests added to Lucene's test suite - maybe you could come up with a test case that shows the performance issue explicitly here?

Also, if you are doing this type of query repeatedly, look into using a QueryFilter that uses the most restrictive query as the filter, which will limit the search space of the second query.

Erik


On Thursday, October 23, 2003, at 04:43 AM, Daniel Penning wrote:


Hi

The performance of queries using AND (and +) could be greatly improved.

Example:
title:"The Right Way"                 -> 10 hits
text:go                               -> 100 hits
title:"The Right Way" AND text:go     -> 5 hits

It looks like both parts of the query are executed seperatly and then
they are merged. If Lucene would be able to execute the query with
less results (text:go) first and then only check if the second part
(title:"The Right Way") matches, those queries would be much faster.


Daniel Penning



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to