Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score explanation could provide notice of function score rounding #97206

Open
LucasBrandt opened this issue Jun 28, 2023 · 2 comments
Open

Score explanation could provide notice of function score rounding #97206

LucasBrandt opened this issue Jun 28, 2023 · 2 comments
Labels
>enhancement :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@LucasBrandt
Copy link

LucasBrandt commented Jun 28, 2023

Description

As documented by #49402, _score is stored as a float and has a maximum precision. When the total score is large enough, smaller score factor seemingly disappear. This is expected, but _explanation does not explain why the final score value does not reflect the scoring factors it lists.

Here's an example explanation where it would be helpful to be made aware of the rounding:

{
  "value": 300000000.0,
  "description": "min of:",
  "details": [
    {
      "value": 300000000.0,
      "description": "function score, score mode [sum]",
      "details": [
        {
          "value": 300000000.0,
          "description": "field value function: none(doc['plan.directory_ranking_level'].value * factor=1.0E8)",
          "details": []
        },
        {
          "value": 0.3040064,
          "description": "random score function (seed: -1217277296, field: _id)",
          "details": []
        }
      ]
    },
    {
      "value": 3.4028235e+38,
      "description": "maxBoost",
      "details": []
    }
  ]
}

I believe this is related to #11872 and #53158

@LucasBrandt LucasBrandt added >enhancement needs:triage Requires assignment of a team area label labels Jun 28, 2023
@inqueue inqueue added the :Search Relevance/Ranking Scoring, rescoring, rank evaluation. label Jun 29, 2023
@elasticsearchmachine elasticsearchmachine added Team:Search Meta label for search team and removed needs:triage Requires assignment of a team area label labels Jun 29, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@javanna javanna added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 12, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

4 participants