You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
Do a search with .TrackScore() enabled and then look at the value of the MaxScore property of the SearchResponse, it's always at null even if there is a value in the JSON.
Steps to reproduce:
Do a search with .TrackScore() enabled
Check the JSON answered, the max_score property is there
Check the SearchResponse class, no MaxScore property is set at the root level even if the property is available only at the HitsMetadata level.
Expected behavior
MaxScore is set correctly at both level or root level is deleted.
TheFireCookie
changed the title
MaxScore not filled on SearchResponse
MaxScore not filled on SearchResponse at the root level but only in the HitsMetadata
Aug 9, 2023
The client just deserializes what the server sends and in this case, the server does not send the max_score field on top level at all. I have to check if the top level max_score field should even exists. It is defined in the current specification, but that might as well be a bug. Will come back to you after clarifying.
Elastic.Clients.Elasticsearch version:
8.9.1
Elasticsearch version:
8.9.0
.NET runtime version:
7.0.10
Operating system version:
Windows 11
Description of the problem including expected versus actual behavior:
Do a search with .TrackScore() enabled and then look at the value of the MaxScore property of the SearchResponse, it's always at null even if there is a value in the JSON.
Steps to reproduce:
Expected behavior
MaxScore is set correctly at both level or root level is deleted.
Json sent:
Json received:
.NET code

The text was updated successfully, but these errors were encountered: