lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Tan (JIRA)" <>
Subject [jira] Commented: (LUCENE-446) FunctionQuery - score based on field value
Date Tue, 14 Feb 2006 05:50:08 GMT
    [ ] 

Kelvin Tan commented on LUCENE-446:

Yes, I've independently come up with something similar. What's interesting is that you can
also perform filtering (like date filtering) by simply returning negative Float.MAX_VALUE.
This pretty much guarantees that the document's final score is < 0.

I've also come across the need to be able to modify the final score of a document, and have
done this via a score-modifying query wrapper which delegates the scoring to the functionquery
it wraps, then applying an additional function to it. Is that similar to the product function
you mention?

> FunctionQuery - score based on field value
> ------------------------------------------
>          Key: LUCENE-446
>          URL:
>      Project: Lucene - Java
>         Type: New Feature
>   Components: Search
>     Versions: 1.9
>     Reporter: Yonik Seeley
>  Attachments:,
> FunctionQuery can return a score based on a field's value or on it's ordinal value.
> FunctionFactory subclasses define the details of the function.  There is currently a
LinearFloatFunction (a line specified by slope and intercept).
> Field values are typically obtained from FieldValueSourceFactory.  Implementations include
FloatFieldSource, IntFieldSource, and OrdFieldSource.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

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

View raw message