On Wed, Mar 2, 2011 at 12:11 PM, Ofer Fort <ofer...@gmail.com> wrote:
> Hey all,
> I have an index with a lot of documents with the term X and no documents
> with the term Y.
> If i query for X it take a few seconds and returns the results.
> If I query for Y it takes a millisecond and returns an empty set.
> If i query for Y AND X it takes a few seconds and returns an empty set.

This depends on the specifics of what X is.   Some query types must
generate all hits first internally - an example is a multi-term query
(like numeric range query, etc) that matches many terms.

Can you show the generated query (i.e. add debugQuery=true to the request)?

-Yonik
http://lucidimagination.com

Reply via email to