elastic / elasticsearch-java

Official Elasticsearch Java Client
Apache License 2.0
408 stars 237 forks source link

Inconsistent type for IndexTemplate priority #775

Closed slawekjaranowski closed 4 months ago

slawekjaranowski commented 5 months ago

Java API client version

8.13.0

Java version

1.8

Elasticsearch Version

8.11.3

Problem description

In: co.elastic.clients.elasticsearch.indices.PutIndexTemplateRequest we have:

    @Nullable
    private final Integer priority;

but in: co.elastic.clients.elasticsearch.indices.IndexTemplate we have:

    @Nullable
    private final Long priority;

Looks like is the same field used by different endpoint, so should have the same type in API.

l-trotta commented 5 months ago

Hello, thanks for reporting this! I'll check which one is the correct one and make sure it's consistent everywhere.

l-trotta commented 4 months ago

fixed, will be part of the next minor version