lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <>
Subject [jira] Commented: (LUCENE-446) search.function - (1) score based on field value, (2) simple score customizability
Date Sat, 05 May 2007 07:21:15 GMT


Doron Cohen commented on LUCENE-446:

Yonik (and other Solr's search.function people), 

I omitted some of the original functions/sources that were in your code: 
 -   LinearFloatFunction,   MaxFloatFunction,   ReciprocalFloatFunction, 
 -   OrdFieldSource,   ReverseOrdFieldSource

The first 3 should be straightforward to implemented by extending CustomScoreQuery, like the
code samples show. Do you think such implementations should be included, ready to use?

The last 2 Ord ones can be implemented as before, i.e. with the "expert" class ValueSource
that was kept. But they seemed spooky to me, with that comment regarding multi-searchers.
Are these just examples, or are they really useful? Do you think they should be included?


> search.function - (1) score based on field value, (2) simple score customizability
> ----------------------------------------------------------------------------------
>                 Key: LUCENE-446
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Search
>            Reporter: Yonik Seeley
>         Assigned To: Doron Cohen
>            Priority: Minor
>             Fix For: 2.2
>         Attachments: function.patch.txt, function.patch.txt,,
> 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.
You can reply to this email to add a comment to the issue online.

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

View raw message