It's not accurate to say that Lucene scans the index for each search. Rather, every Query reads a set of posting lists, each are typically read from disk. If you pass Query[] which have nothing to do in common (for example no terms in common), then you won't gain anything, b/c each Query will already read just the posting lists it needs.
If your Query[] contains the exact Query, it's redundant to run all these searches, since they will return the same results every time. Right? Shai On Wed, Jul 22, 2009 at 7:59 PM, tsuraan <tsur...@gmail.com> wrote: > If I understand lucene correctly, when doing multiple simultaneous > searches on the same IndexSearcher, they will basically all do their > own index scans and collect results independently. If that's correct, > is there a way to batch searches together, so only one index scan is > done? What I'd like is a Searcher.search(Query[], Collector[]) type > function, where the search only scans over the index once for each > collection of (basically unrelated) searches. Is that possible, or > does that even make sense? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >