[ 
https://issues.apache.org/jira/browse/SOLR-16994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christine Poerschke resolved SOLR-16994.
----------------------------------------
    Fix Version/s: main (10.0)
                   9.4
       Resolution: Fixed

> facilitate date-related FieldValueFeature extensions (docValues=True only)
> --------------------------------------------------------------------------
>
>                 Key: SOLR-16994
>                 URL: https://issues.apache.org/jira/browse/SOLR-16994
>             Project: Solr
>          Issue Type: Task
>          Components: contrib - LTR
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>             Fix For: main (10.0), 9.4
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Currently having custom features such as relative "document age" or 
> "remaining shelf life" based on a date field requires duplication of a lot of 
> the {{FieldValueFeature}} code:
>  * 
> [https://github.com/apache/solr/blob/releases/solr/9.3.0/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java]
> The {{NumericDocValuesFieldValueFeatureScorer.readNumericDocValues()}} 
> implementation already considers the float and double {{NumberType}} choices 
> and by also considering {{NumberType.DATE}} there we could facilitate 
> date-related extensions:
>  * 
> [https://github.com/apache/solr/blob/releases/solr/9.3.0/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java#L251]
>  * 
> [https://github.com/apache/solr/blob/releases/solr/9.3.0/solr/core/src/java/org/apache/solr/schema/NumberType.java#L27]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to