Elastic.Clients.Elasticsearch Version="8.15.6": maxScore is always null

I have this query, created in C#.

{
  "min_score": 20,
  "query": {
    "bool": {
      "filter": {
        "term": {
          "glnType": {
            "value": "Company"
          }
        }
      },
      "must": {
        "query_string": {
          "default_field": "name",
          "query": "Test company\\ B\\.V\\."
        }
      }
    }
  },
  "size": 1000
}

When I run this query in Kibana, it has a value in max_score, so the query looks ok.

However, if I run the query from C# with the latest Elastic.Clients.Elasticsearch, then MaxScore is always null.

How can this be fixed?

Added language-clients

For anyone who has the same issue, this is the fix.
result.HitsMetadata.MaxScore
MaxScore moved to HitsMetadata.

GitHub issue:
https://github.com/elastic/elasticsearch-net/issues/7886