Skip to content

Could not get list of indices due to co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'LimitTokenCountTokenFilter.consumeAllTokens' #199

@logicpeters

Description

@logicpeters

Java API client version

7.17.1

Java version

17

Elasticsearch Version

7.16.2

Problem description

I am trying to migrate this working code from the high-level rest client:

GetIndexResponse response = hlrClient.indices().get(new GetIndexRequest("someprefix-*"), RequestOptions.DEFAULT);

To this:

GetIndexResponse response = javaApiClient.indices().get(req -> req.index("someprefix-*"));

Im confused by the meaning of the error message -- why does this property need to be set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions