You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/04/29 14:47:00 UTC
[jira] [Updated] (SOLR-15030) Make score available as pseudo field in Function Queries
[ https://issues.apache.org/jira/browse/SOLR-15030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SOLR-15030:
----------------------------------
Labels: FunctionQuery pull-request-available score (was: FunctionQuery score)
> Make score available as pseudo field in Function Queries
> --------------------------------------------------------
>
> Key: SOLR-15030
> URL: https://issues.apache.org/jira/browse/SOLR-15030
> Project: Solr
> Issue Type: New Feature
> Components: query
> Reporter: Jan Høydahl
> Priority: Major
> Labels: FunctionQuery, pull-request-available, score
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Spinoff from Slack thread [https://the-asf.slack.com/archives/CEKUCUNE9/p1606911042386800]
> {quote}
> I'm caclulating a custom score to return as a field based on a function query, i.e.
> fl=udid,score,myScore:div(log(div(query($q),360.85104)),div(log(div(7.6316385,360.85104)),-3))
> This turns out to be very expensive due to the query($q) part. The score is already present when running this function, so is there a function that will access the score directly, e.g. score() instead of running a query($q)? Using plain score does not work as it is not a literal field.
> {quote}
> [~dsmiley] suggested that making {{score}} a pseudo field, returning the score of the current hit, would be fairly easy now.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org