I'm using Java API Client 8.5.3 against elasticsearch 7.12.0
I'm gettinf this error when doing a search:
co.elastic.clients.transport.TransportException: [es/search] Missing [X-Elastic-Product] header. Please check that you are connecting to an Elasticsearch instance, and that any networking filters are preserving that header.
Is it because I can not use Java API Client with elasticsearch 7.12.0 ?
Version 8 clients are not compatible with Elasticsearch 7.x, so I would recommend you upgrade. The version you are using is very, very old and has been EOL a long time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.