[ 
https://issues.apache.org/jira/browse/SOLR-16994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771040#comment-17771040
 ] 

ASF subversion and git services commented on SOLR-16994:
--------------------------------------------------------

Commit e413210646bfdf1d5bc342d5b52ae5a4f0239c70 in solr's branch 
refs/heads/main from Christine Poerschke
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=e413210646b ]

SOLR-16994: facilitate date-related FieldValueFeature extensions 
(docValues=True only) (#1950)



> 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
>          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