Skip to content

[composite] failed to parse field [sources] #534

Closed
@liaoquanlei

Description

@liaoquanlei

Java API client version

8.6.2

Java version

8

Elasticsearch Version

8.6.2

Problem description

it can not work with this

Map<String, CompositeAggregationSource> map = new HashMap<>();
map.put("iids", CompositeAggregationSource.of(c -> c.terms(t -> t.field("iid").order(NamedValue.of("iid",SortOrder.Desc)))));

preview it to json

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions