Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
New
Description
The ValueSource.asDoubleValuesSource() method bridges the old API to the new one. It's rather important because boosting a query no longer has an old API; in its place is using this method and passing to FunctionScoreQuery.boostByValue. Unfortunately, asDoubleValuesSource will fetch/compute the score for the document in order to expose it in a Scorable on the "scorer" key of the context Map. AFAICT nothing in Lucene or Solr actually uses this. If it should be kept, the Scorable's score() method could fetch it at that time (e.g. on-demand).
Attachments
Issue Links
- is caused by
-
LUCENE-8099 Deprecate CustomScoreQuery, BoostedQuery and BoostingQuery
- Closed
- is related to
-
SOLR-12407 edismax boost performance regression from switch to FunctionScoreQuery
- Closed
- links to