@@ -297,55 +297,6 @@ public Cancellable getMappingAsync(GetMappingsRequest getMappingsRequest, Reques
297
297
emptySet ());
298
298
}
299
299
300
- /**
301
- * Retrieves the mappings on an index or indices using the Get Mapping API.
302
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html">
303
- * Get Mapping API on elastic.co</a>
304
- * @param getMappingsRequest the request
305
- * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
306
- * @return the response
307
- * @throws IOException in case there is a problem sending the request or parsing back the response
308
- *
309
- * @deprecated This method uses old request and response objects which still refer to types, a deprecated
310
- * feature. The method {@link #getMapping(GetMappingsRequest, RequestOptions)} should be used instead, which
311
- * accepts a new request object.
312
- */
313
- @ Deprecated
314
- public org .elasticsearch .action .admin .indices .mapping .get .GetMappingsResponse getMapping (
315
- org .elasticsearch .action .admin .indices .mapping .get .GetMappingsRequest getMappingsRequest ,
316
- RequestOptions options ) throws IOException {
317
- return restHighLevelClient .performRequestAndParseEntity (getMappingsRequest ,
318
- IndicesRequestConverters ::getMappings ,
319
- options ,
320
- org .elasticsearch .action .admin .indices .mapping .get .GetMappingsResponse ::fromXContent ,
321
- emptySet ());
322
- }
323
-
324
- /**
325
- * Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.
326
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html">
327
- * Get Mapping API on elastic.co</a>
328
- * @param getMappingsRequest the request
329
- * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
330
- * @param listener the listener to be notified upon request completion
331
- *
332
- * @deprecated This method uses old request and response objects which still refer to types, a deprecated feature.
333
- * The method {@link #getMapping(GetMappingsRequest, RequestOptions)} should be used instead, which accepts a new
334
- * request object.
335
- * @return cancellable that may be used to cancel the request
336
- */
337
- @ Deprecated
338
- public Cancellable getMappingAsync (org .elasticsearch .action .admin .indices .mapping .get .GetMappingsRequest getMappingsRequest ,
339
- RequestOptions options ,
340
- ActionListener <org .elasticsearch .action .admin .indices .mapping .get .GetMappingsResponse > listener ) {
341
- return restHighLevelClient .performRequestAsyncAndParseEntity (getMappingsRequest ,
342
- IndicesRequestConverters ::getMappings ,
343
- options ,
344
- org .elasticsearch .action .admin .indices .mapping .get .GetMappingsResponse ::fromXContent ,
345
- listener ,
346
- emptySet ());
347
- }
348
-
349
300
/**
350
301
* Retrieves the field mappings on an index or indices using the Get Field Mapping API.
351
302
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html">
@@ -679,42 +630,6 @@ public Cancellable getAsync(GetIndexRequest getIndexRequest, RequestOptions opti
679
630
GetIndexResponse ::fromXContent , listener , emptySet ());
680
631
}
681
632
682
- /**
683
- * Retrieve information about one or more indexes
684
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html">
685
- * Indices Get Index API on elastic.co</a>
686
- * @param getIndexRequest the request
687
- * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
688
- * @return the response
689
- * @throws IOException in case there is a problem sending the request or parsing back the response
690
- * @deprecated This method uses an old request object which still refers to types, a deprecated feature. The method
691
- * {@link #get(GetIndexRequest, RequestOptions)} should be used instead, which accepts a new request object.
692
- */
693
- @ Deprecated
694
- public org .elasticsearch .action .admin .indices .get .GetIndexResponse get (
695
- org .elasticsearch .action .admin .indices .get .GetIndexRequest getIndexRequest , RequestOptions options ) throws IOException {
696
- return restHighLevelClient .performRequestAndParseEntity (getIndexRequest , IndicesRequestConverters ::getIndex , options ,
697
- org .elasticsearch .action .admin .indices .get .GetIndexResponse ::fromXContent , emptySet ());
698
- }
699
-
700
- /**
701
- * Retrieve information about one or more indexes
702
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html">
703
- * Indices Get Index API on elastic.co</a>
704
- * @param getIndexRequest the request
705
- * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
706
- * @param listener the listener to be notified upon request completion
707
- * @deprecated This method uses an old request object which still refers to types, a deprecated feature. The method
708
- * {@link #getAsync(GetIndexRequest, RequestOptions, ActionListener)} should be used instead, which accepts a new request object.
709
- * @return cancellable that may be used to cancel the request
710
- */
711
- @ Deprecated
712
- public Cancellable getAsync (org .elasticsearch .action .admin .indices .get .GetIndexRequest getIndexRequest , RequestOptions options ,
713
- ActionListener <org .elasticsearch .action .admin .indices .get .GetIndexResponse > listener ) {
714
- return restHighLevelClient .performRequestAsyncAndParseEntity (getIndexRequest , IndicesRequestConverters ::getIndex , options ,
715
- org .elasticsearch .action .admin .indices .get .GetIndexResponse ::fromXContent , listener , emptySet ());
716
- }
717
-
718
633
/**
719
634
* Force merge one or more indices using the Force Merge API.
720
635
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html">
0 commit comments