Error with opensearch java client getting index information

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

<dependency>
    <groupId>org.opensearch.client</groupId>
    <artifactId>opensearch-rest-client</artifactId>
    <version>2.6.0</version>
</dependency>
<dependency>
    <groupId>org.opensearch.client</groupId>
    <artifactId>opensearch-java</artifactId>
    <version>2.3.0</version>
</dependency>

Describe the issue:
creationDate and creationDateString are null. Why?

Relevant Logs or Screenshots:

@leonardo89 please check this issue [1] and documentation [2] how to ask for additional headers (including creation date).

[1] [FEATURE] Add capability to cat indices with column names · Issue #388 · opensearch-project/opensearch-java · GitHub
[2] opensearch-java/USER_GUIDE.md at main · opensearch-project/opensearch-java · GitHub

Hi @reta, thanks for your reply. I checked the links you sent me and saw a merged PR to add headers on cat requests. I’m using the last version of the OpenSearch Java client, and I don’t see the header method from the second link.

My apologies @leonardo89 , the change will be available in the next release [1], I mistakenly thought it made it to 2.3.0.

[1] [RELEASE] Release v2.3.1 · Issue #426 · opensearch-project/opensearch-java · GitHub

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.