This is something I have been wondering for a while but can't find a
good answer by reading the code myself.
If you have a query like this:
( field:Value1 OR
field:Value2 OR
field:Value3 OR
... )
How many TermEnum / TermDocs scans should this execute?
(a) One per clause, or
(b) One for the entire boolean query?
I wonder because we do use a lot of queries of this nature, and I can't
find any direct evidence that they get logically merged, leading me to
believe that it's one per clause at present (and thus this becomes a
potential optimisation.)
Daniel
--
Daniel Noll Forensic and eDiscovery Software
Senior Developer The world's most advanced
Nuix email data analysis
http://nuix.com/ and eDiscovery software
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org