[ 
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-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to