FAQ
Hi all.

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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedApr 7, '09 at 3:04a
activeApr 7, '09 at 7:20a
posts2
users2
websitelucene.apache.org

2 users in discussion

Daniel Noll: 1 post Paul Elschot: 1 post

People

Translate

site design / logo © 2022 Grokbase