RE: Short circuit AND or subquerying in lucene for performance

2012-02-16 Thread Chris Hostetter
: 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 think it : is feasible to implement such a short circuit operator where the term is : "late"

RE: Short circuit AND or subquerying in lucene for performance

2012-02-16 Thread Delalande, Thierry
ndler [mailto:u...@thetaphi.de] Sent: 15 February 2012 21:16 To: java-user@lucene.apache.org Subject: RE: Short circuit AND or subquerying in lucene for performance > : Basically for queries such as field1:foo AND field2:*bar, I think it > : would be highly beneficial to restrict evaluation of the se

RE: Short circuit AND or subquerying in lucene for performance

2012-02-15 Thread Uwe Schindler
> : 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 entirety due > : to the leading wildcard. > > This is exactly how the BooleanQuery cl

Re: Short circuit AND or subquerying in lucene for performance

2012-02-15 Thread Chris Hostetter
: 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 entirety due : to the leading wildcard. This is exactly how the BooleanQuery class in Luce