Skip to content

FunctionScore query always passes null ExceptionHolder to sub script queries #109177

@bhmehdi

Description

@bhmehdi

Elasticsearch Version

8.13.4

Installed Plugins

No response

Java Version

bundled

OS Version

Windows 10

Problem Description

Hello,
when setting up a score calculation script I notice that the ExplanationHolder object is always null which makes it impossible to add a description on this object.
The example iused is this example
you can see on lines 144 and 168 ExplanationHolder is always null and you can not add a custom description.
explanation.set(myCustomdescription);

Steps to Reproduce

  • install plugin on elasticsearch
  • do a search with a score calculation function

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Labels

:Search Relevance/RankingScoring, rescoring, rank evaluation.>bugTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearchpriority:normalA label for assessing bug priority to be used by ES engineers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions