On 5/17/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
how does searcher.numDocs() compare to using docSet.intersectionSize (constraintDocSet)?
No current performance difference... numDocs() is slightly more abstracted so that something like an intersection-cache could be added in the future if needed, or alternate ways of taking intersections could be done (non-cached simple term queries could use the same strategy as ConjunctionScorer, etc). It must have been late when I came up with the name "numDocs()" ;-) And I should have probably generalized it to numDocs(Collection<Query>, Collection<DocSet>) or something like a ChainedDocSet... -Yonik
