IndexSearcher.search is calling my custom scorer's 'next' and 'doc' methods 64% fewer times. I see no 'advance' method in any of the hot spots'. I am getting the same number of hits from the custom scorer. Has the BooleanScorer2 logic changed?
Peter On Wed, Sep 9, 2009 at 9:17 AM, Yonik Seeley < [email protected]> wrote: > On Wed, Sep 9, 2009 at 8:57 AM, Peter Keegan<[email protected]> > wrote: > > Using JProfiler, I observe that the improvement > > is due to a huge reduction in the number of calls to TermDocs.next and > > TermDocs.skipTo (about 65% fewer calls). > > Indexes are searched per-segment now (i.e. MultiTermDocs isn't normally > used). > Off the top of my head, I'm not sure how this can lead to fewer > TermDocs.skipTo() calls though. Are you sure you weren't also > counting Scorer.skipTo()... which would now be Scorer.advance()? > Have you verified that your custom scorer is working correctly with > 2.9 and that you're getting the same number of hits on the overall > query as you were with previous versions? > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
