Hi John, On Wednesday 17 August 2005 04:46, John Wang wrote: > Hi: > > I posted a bug (36147) a few days ago and didn't hear anything, so > I thought I'd try my luck on this list. > > The idea is to avoid score calculations on documents to be filtered > out anyway. (e.g. via Filter object passed to the searcher class) > > This seems to be an easy change.
Have a look here: http://issues.apache.org/bugzilla/show_bug.cgi?id=32965 > Also it would be nice to expose a method to return a score given a > docid, e.g. > > float getScore(int docid) > > on the Scorer class. skipTo(int docid) and score() will do that. > I am gonna make the change locally and do some performance analysis > on it and will post some numbers later. The default score computations are mostly table lookups, and pretty fast. So, unless you have large indexes, this will probably not make much difference, but any performance improvement is wellcome. In larger indexes, it helps to use skipTo() while searching. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]