Jan Høydahl created SOLR-15030:
----------------------------------

             Summary: 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
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query
            Reporter: Jan Høydahl


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.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to