On Tue, Nov 17, 2009 at 10:23 AM, Peter Keegan <peterlkee...@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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org