lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: Boolean Scorer
Date Sat, 11 Dec 2004 22:04:40 GMT

On Friday 10 December 2004 23:12, Chuck Williams wrote:
> Paul,
> Would there be a way to get the best of both worlds?  E.g., could you
> factor the specializable score combination differently, so that one
> method was called with each new score to generate a state entity, while
> a final method computed the score from the state.  For both sum and max,
> the state entity could just be a float, not requiring an array.  The
> final operation for the sum with coord case would do the coord.  I
> haven't looked at the code carefully enough to see if this actually
> works, but it seemed worth mentioning.

It's simple enough to do some abstract method call instead of initializing
a sum or adding to it. The problem is that as long as such a call is not
effectively inlined by the JVM, it will cause a performance hit for the sum

The latest version of the advanceAfterCurrent method that computes the
score is java protected. It can be overridden to make the best
of it in another world.

Paul Elschot

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

View raw message