Skip to content

null value in SearchResponse.hits.hits.sort causes parsing failure #66

Closed
@swallez

Description

@swallez

From https://discuss.elastic.co/t/failure-with-sorts-and-new-co-elastic-clients-elasticsearch-java-client/291511/8

When a request is sorted on fields that may have null values, the responses's hits.hits.sort array will contain null values that cause a parsing failure as arrays generally don't accept null values in the API spec.

This is related to elastic/elasticsearch-specification#1109 and will be solved once sort is considered as an opaque JSON blob.

/cc @ilgrosso

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client codev7.16.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions