Generic Client Usage

Having trouble getting an early example of the generic client to work. Cannot resolve the imports used. Using 2.19.0 client. Can you identify the imports or a corrected query? Response response = client.generic().perform( SimpleEndpoint.builder() .method(“POST”) .path(“/” + index + “/_search”) .body(JsonData.fromJson(escapedQuery)) .build() );

Please check the examples here [1]

[1] opensearch-java/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractGenericClientIT.java at main · opensearch-project/opensearch-java · GitHub