Short circuit AND or subquerying in lucene for performance

2012-02-15 Thread Delalande, Thierry
Hi, I've been looking for a short circuit AND operator in Lucene or a way to do subquerying. Basically for queries such as field1:foo AND field2:*bar, I think it would be highly beneficial to restrict evaluation of the second field on the result of the first to avoid scanning the index in its

RE: Short circuit AND or subquerying in lucene for performance

2012-02-16 Thread Delalande, Thierry
Thanks Uwe for your explanation, Indeed that's what I understood that scanning will happen first. Is there a way to run a subquery in Lucene, i.e. running a query only on the result of a first query to avoid scanning the whole index ? Is is worth forwarding this request to the developers, do you t