lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
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 <peterlkeegan@gmail.com> 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.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message