: 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"
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
> : 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
: 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