elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

Inconsistent type for IndexTemplate priority

Open slawekjaranowski opened this issue 4 months ago • 1 comments

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.

slawekjaranowski avatar Apr 05 '24 09:04 slawekjaranowski

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

l-trotta avatar Apr 05 '24 12:04 l-trotta

fixed, will be part of the next minor version

l-trotta avatar May 02 '24 10:05 l-trotta