Re: Why ORScorer delayed init?

2007-04-10 Thread Chris Hostetter
: I thought it would avoid accessing the index as much as : possible before actually doing a search, but I did not : verify whether that is important. : In case it is not, any simplification is off course welcome. conceptually: once Query.createWeight(Searcher) is called, the "Search" has already

Re: Why ORScorer delayed init?

2007-04-10 Thread Paul Elschot
On Tuesday 10 April 2007 20:24, Yonik Seeley wrote: > On 4/10/07, Marvin Humphrey <[EMAIL PROTECTED]> wrote: > > In DisjunctionSumScorer, both skipTo() and next() invoke > > initScorerDocQueue() on the first iteration. However, since all > > subscorers are added en masse via the constructor instea

Re: Why ORScorer delayed init?

2007-04-10 Thread Yonik Seeley
On 4/10/07, Marvin Humphrey <[EMAIL PROTECTED]> wrote: In DisjunctionSumScorer, both skipTo() and next() invoke initScorerDocQueue() on the first iteration. However, since all subscorers are added en masse via the constructor instead of individually via an add() method which does not exist for t

Why ORScorer delayed init?

2007-04-10 Thread Marvin Humphrey
Greets, In DisjunctionSumScorer, both skipTo() and next() invoke initScorerDocQueue() on the first iteration. However, since all subscorers are added en masse via the constructor instead of individually via an add() method which does not exist for this class, it would be possible to trig