[
https://issues.apache.org/jira/browse/SOLR-16994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771042#comment-17771042
]
ASF subversion and git services commented on SOLR-16994:
--------------------------------------------------------
Commit 28be875d7edb68e1061807686bc37a761413ac25 in solr's branch
refs/heads/branch_9x from Christine Poerschke
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=28be875d7ed ]
SOLR-16994: facilitate date-related FieldValueFeature extensions
(docValues=True only) (#1950)
(cherry picked from commit e413210646bfdf1d5bc342d5b52ae5a4f0239c70)
> 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: [email protected]
For additional commands, e-mail: [email protected]