lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Use of AllTermDocs with custom scorer
Date Tue, 17 Nov 2009 16:46:50 GMT
On Tue, Nov 17, 2009 at 10:23 AM, Peter Keegan <> wrote:
>>This is a generic solution, but just make sure you don't do the
>>map lookup for every doc collected, if you can help it, else that'll
>>slow down your search.
> What I just learned is that a Scorer is created for each segment (lights
> on!).
> So, couldn't I just do the subreader->docBase map lookup once when the
> custom scorer is created? No need to access the map for every doc this way.

Right, that should work.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message