What kind of performance to expect from a MultiTermQuery being used in BooleanQuery?

2009-03-12 Thread ArtemGr
Hi! I have this NotEmptyQuery class (http://gist.github.com/78115) which extends the MultiTermQuery. The class is added into a BooleanQuery, after some other queries (e.g. after TermQuery and LongTrieRangeFilter queries). I wonder: does Lucene need to scan all the terms in the inverted index and th

Re: What kind of performance to expect from a MultiTermQuery being used in BooleanQuery?

2009-03-13 Thread ArtemGr
> I wonder: does Lucene need to scan all the terms in the inverted index > and the collect all the document identifiers into the DocIdSet > in order to implement the MultiTermQuery which goes after some other > queries in a BooleanQuery? Like, collecting a thouthand of document > identifiers only t