[
https://issues.apache.org/jira/browse/SOLR-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972747#comment-15972747
]
Erik Hatcher commented on SOLR-1485:
------------------------------------
[~dsmiley] - thanks for having a look.
I'll rework to the lambda recommendation, thanks!
{{FloatPayloadValueSource}} has this function signature:
{{payload(field,value[,default, 'min|max|average'])}}, where the default
behavior currently is to average the payload floats for the matching terms.
Your following question gets at the heart of one of the primary use cases for
this, unique terms per-field, where the idea is to return only a single float
value (for sorting, other functioning, pseudo-fielding, and range/bucket/query
faceting). Multiple matching terms per doc serves different use cases though,
such as down-boosting synonyms (via NumericPayloadTokenFilter), or averaging a
bunch of entity matches, each carrying some "weight" factor.
Thanks again, David.
> Payload scoring support
> -----------------------
>
> Key: SOLR-1485
> URL: https://issues.apache.org/jira/browse/SOLR-1485
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Priority: Minor
> Fix For: master (7.0)
>
> Attachments: PayloadTermQueryPlugin.java, payload_value_source.png,
> SOLR-1485.patch
>
>
> Solr has no support for Lucene's PayloadScoreQuery, yet it has support for
> indexing payloads (via DelimitedPayloadTokenFilter or
> NumericPayloadTokenFilter).
> This issue adds value source and query parser support for leveraging payloads
> created by those token filters.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]