elasticsearch.ElasticsearchException: Invalid or missing tagline (OpenSearch)

2.5k Views Asked by At

After migrating to AWS OpenSearch from Elasticsearch we get the following error when calling OpenSearch via the Elasticsearch-Rest-High-Level-Client:

elasticsearch.ElasticsearchException: Invalid or missing tagline [The OpenSearch Project: https://opensearch.org/]
2

There are 2 best solutions below

0
Nexonus On BEST ANSWER

As it turns out the version of the Elasticsearch-Rest-High-Level-Client was too new. We used the client version 7.15.0 with OpenSearch 1.0. We downgraded the client to 7.10.2 and it worked again.

Also using the OpenSearch-Rest-High-Level-Client in version 1.0 worked, too.

0
Anju On

I was facing same issue. Downgrading version of Elasticsearch-Rest-High-Level-Client to 7.10.2 worked for me.