elastic / elasticsearch-java

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

Regarding termvectors query related issues #783

Closed asdaerwrte closed 3 months ago

asdaerwrte commented 4 months ago

Java API client version

8.8.1

Java version

8

Elasticsearch Version

8.8.1

Problem description

In the case where the ID query is not applicable, the returned value does not have an ID, but your verification ID cannot be empty in any case image image

l-trotta commented 4 months ago

Hello, thanks for the report! Yes, id in TermVectorResponse should be optional since the server doesn't return it when it's not specified in the request. We'll fix it in the API specification used to produce the Java code and regenerate the client to fix it.