Add support for Elasticsearch 7.16.2 onward
Is your feature request related to a problem? Please describe.
We pin elasticsearch-py to <7.11 but those versions of Elasticsearch are still affected by the log4j vulnerability
Describe the solution you'd like Pin the client to a version that makes me able to run Elasticsearch >=7.16.2 (see https://www.elastic.co/blog/new-elasticsearch-and-logstash-releases-upgrade-apache-log4j2)
We have a draft PR here showing that a few tests are not passing with version 7.17.4: https://github.com/deepset-ai/haystack/pull/2993
The failing tests seem all to be related to OpenSearchDocumentStore. The reason is that the latest compatible version of the elasticsearch-py client with OpenSearch is 7.13.4 (see here). In order to upgrade the Elasticsearch client to a version >= 7.16.2, we need to use the OpenSearch client for the OpenSearchDocumentStore.