Skip to content

Support for geo distance sort on nested fields #831

Closed
@cmbarbu

Description

@cmbarbu

Description

Nested sort seems to be available only for co.elastic.clients.elasticsearch._types.FieldSort, but not for co.elastic.clients.elasticsearch._types.GeoDistanceSort. Consequently, trying to sort by distance on a nested field yields an error:

"query_shard_exception","reason":"it is mandatory to set the [nested] context on the nested sort field: [geoLocation.geoPoint].

This used to be possible in 7.x. Are there any plans to support this again in 8.x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client codeCategory: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions