Hello
I am in this situation: big project using elasticsearch rest high level client, 7.16.X, and want to migrate to 8.2.X or later, so I follow these guidelines Migrating from the High Level Rest Client | Elasticsearch Java API Client [8.3] | Elastic
But there is an incompatibility with XContentType
Exception in thread "I/O dispatcher 1" java.lang.NoSuchMethodError: 'org.elasticsearch.xcontent.XContentType org.elasticsearch.xcontent.XContentType.fromMediaTypeOrFormat(java.lang.String)' at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2479) at org.elasticsearch.client.RestHighLevelClient.getVersionValidation(RestHighLevelClient.java:2779) at org.elasticsearch.client.RestHighLevelClient.access$200(RestHighLevelClient.java:259) at org.elasticsearch.client.RestHighLevelClient$5.onSuccess(RestHighLevelClient.java:2740) at org.elasticsearch.client.RestClient$FailureTrackingResponseListener.onSuccess(RestClient.java:678) at org.elasticsearch.client.RestClient$1.completed(RestClient.java:399) at org.elasticsearch.client.RestClient$1.completed(RestClient.java:393)
(this method called by the 7.16/17 hlrc library on XContentType no longer exist in the 8.0/1/2 version of elasticsearch-x-content module)
How come you run both a java-api-client and a hlrc at the same time without hitting this conflict?