@@ -834,7 +834,9 @@ default Mono<Boolean> deleteIndex(DeleteIndexRequest deleteIndexRequest) {
834
834
* eg. the index already exist.
835
835
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html"> Indices
836
836
* Create API on elastic.co</a>
837
+ * @deprecated since 4.2
837
838
*/
839
+ @ Deprecated
838
840
default Mono <Boolean > createIndex (Consumer <CreateIndexRequest > consumer ) {
839
841
840
842
CreateIndexRequest request = new CreateIndexRequest ();
@@ -850,7 +852,9 @@ default Mono<Boolean> createIndex(Consumer<CreateIndexRequest> consumer) {
850
852
* eg. the index already exist.
851
853
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html"> Indices
852
854
* Create API on elastic.co</a>
855
+ * @deprecated since 4.2, use {@link #createIndex(org.elasticsearch.client.indices.CreateIndexRequest)}
853
856
*/
857
+ @ Deprecated
854
858
default Mono <Boolean > createIndex (CreateIndexRequest createIndexRequest ) {
855
859
return createIndex (HttpHeaders .EMPTY , createIndexRequest );
856
860
}
@@ -864,9 +868,38 @@ default Mono<Boolean> createIndex(CreateIndexRequest createIndexRequest) {
864
868
* eg. the index already exist.
865
869
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html"> Indices
866
870
* Create API on elastic.co</a>
871
+ * @deprecated since 4.2, use {@link #createIndex(HttpHeaders, org.elasticsearch.client.indices.CreateIndexRequest)}
867
872
*/
873
+ @ Deprecated
868
874
Mono <Boolean > createIndex (HttpHeaders headers , CreateIndexRequest createIndexRequest );
869
875
876
+ /**
877
+ * Execute the given {@link org.elasticsearch.client.indices.CreateIndexRequest} against the {@literal indices} API.
878
+ *
879
+ * @param createIndexRequest must not be {@literal null}.
880
+ * @return a {@link Mono} signalling successful operation completion or an {@link Mono#error(Throwable) error} if
881
+ * eg. the index already exist.
882
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html"> Indices
883
+ * Create API on elastic.co</a>
884
+ * @since 4.2
885
+ */
886
+ default Mono <Boolean > createIndex (org .elasticsearch .client .indices .CreateIndexRequest createIndexRequest ) {
887
+ return createIndex (HttpHeaders .EMPTY , createIndexRequest );
888
+ }
889
+
890
+ /**
891
+ * Execute the given {@link org.elasticsearch.client.indices.CreateIndexRequest} against the {@literal indices} API.
892
+ *
893
+ * @param headers Use {@link HttpHeaders} to provide eg. authentication data. Must not be {@literal null}.
894
+ * @param createIndexRequest must not be {@literal null}.
895
+ * @return a {@link Mono} signalling successful operation completion or an {@link Mono#error(Throwable) error} if
896
+ * eg. the index already exist.
897
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html"> Indices
898
+ * Create API on elastic.co</a>
899
+ * @since 4.2
900
+ */
901
+ Mono <Boolean > createIndex (HttpHeaders headers , org .elasticsearch .client .indices .CreateIndexRequest createIndexRequest );
902
+
870
903
/**
871
904
* Execute the given {@link OpenIndexRequest} against the {@literal indices} API.
872
905
*
@@ -1029,7 +1062,7 @@ default Mono<Boolean> updateMapping(PutMappingRequest putMappingRequest) {
1029
1062
* does not exist.
1030
1063
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1031
1064
* Put Mapping API on elastic.co</a>
1032
- * @deprecated since 4.1, use {@link #putMapping(HttpHeaders, PutMappingRequest)}
1065
+ * @deprecated since 4.1, use {@link #putMapping(HttpHeaders, org.elasticsearch.client.indices. PutMappingRequest)}
1033
1066
*/
1034
1067
@ Deprecated
1035
1068
default Mono <Boolean > updateMapping (HttpHeaders headers , PutMappingRequest putMappingRequest ) {
@@ -1044,7 +1077,9 @@ default Mono<Boolean> updateMapping(HttpHeaders headers, PutMappingRequest putMa
1044
1077
* does not exist.
1045
1078
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1046
1079
* Put Mapping API on elastic.co</a>
1080
+ * @deprecated since 4.2
1047
1081
*/
1082
+ @ Deprecated
1048
1083
default Mono <Boolean > putMapping (Consumer <PutMappingRequest > consumer ) {
1049
1084
1050
1085
PutMappingRequest request = new PutMappingRequest ();
@@ -1060,7 +1095,9 @@ default Mono<Boolean> putMapping(Consumer<PutMappingRequest> consumer) {
1060
1095
* does not exist.
1061
1096
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1062
1097
* Put Mapping API on elastic.co</a>
1098
+ * @deprecated since 4.2, use {@link #putMapping(org.elasticsearch.client.indices.PutMappingRequest)}
1063
1099
*/
1100
+ @ Deprecated
1064
1101
default Mono <Boolean > putMapping (PutMappingRequest putMappingRequest ) {
1065
1102
return putMapping (HttpHeaders .EMPTY , putMappingRequest );
1066
1103
}
@@ -1074,9 +1111,38 @@ default Mono<Boolean> putMapping(PutMappingRequest putMappingRequest) {
1074
1111
* does not exist.
1075
1112
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1076
1113
* Put Mapping API on elastic.co</a>
1114
+ * @deprecated since 4.2, use {@link #putMapping(HttpHeaders, org.elasticsearch.client.indices.PutMappingRequest)}
1077
1115
*/
1116
+ @ Deprecated
1078
1117
Mono <Boolean > putMapping (HttpHeaders headers , PutMappingRequest putMappingRequest );
1079
1118
1119
+ /**
1120
+ * Execute the given {@link org.elasticsearch.client.indices.PutMappingRequest} against the {@literal indices} API.
1121
+ *
1122
+ * @param putMappingRequest must not be {@literal null}.
1123
+ * @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1124
+ * does not exist.
1125
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1126
+ * Put Mapping API on elastic.co</a>
1127
+ * @since 4.2
1128
+ */
1129
+ default Mono <Boolean > putMapping (org .elasticsearch .client .indices .PutMappingRequest putMappingRequest ) {
1130
+ return putMapping (HttpHeaders .EMPTY , putMappingRequest );
1131
+ }
1132
+
1133
+ /**
1134
+ * Execute the given {@link org.elasticsearch.client.indices.PutMappingRequest} against the {@literal indices} API.
1135
+ *
1136
+ * @param headers Use {@link HttpHeaders} to provide eg. authentication data. Must not be {@literal null}.
1137
+ * @param putMappingRequest must not be {@literal null}.
1138
+ * @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1139
+ * does not exist.
1140
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html"> Indices
1141
+ * Put Mapping API on elastic.co</a>
1142
+ * @since 4.2
1143
+ */
1144
+ Mono <Boolean > putMapping (HttpHeaders headers , org .elasticsearch .client .indices .PutMappingRequest putMappingRequest );
1145
+
1080
1146
/**
1081
1147
* Execute the given {@link FlushRequest} against the {@literal indices} API.
1082
1148
*
@@ -1171,7 +1237,9 @@ default Mono<GetSettingsResponse> getSettings(GetSettingsRequest getSettingsRequ
1171
1237
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html"> Indices
1172
1238
* Flush API on elastic.co</a>
1173
1239
* @since 4.1
1240
+ * @deprecated since 4.2
1174
1241
*/
1242
+ @ Deprecated
1175
1243
default Mono <GetMappingsResponse > getMapping (Consumer <GetMappingsRequest > consumer ) {
1176
1244
1177
1245
GetMappingsRequest request = new GetMappingsRequest ();
@@ -1188,7 +1256,9 @@ default Mono<GetMappingsResponse> getMapping(Consumer<GetMappingsRequest> consum
1188
1256
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html"> Indices
1189
1257
* Flush API on elastic.co</a>
1190
1258
* @since 4.1
1259
+ * @deprecated since 4.2, use {@link #getMapping(org.elasticsearch.client.indices.GetMappingsRequest)}
1191
1260
*/
1261
+ @ Deprecated
1192
1262
default Mono <GetMappingsResponse > getMapping (GetMappingsRequest getMappingsRequest ) {
1193
1263
return getMapping (HttpHeaders .EMPTY , getMappingsRequest );
1194
1264
}
@@ -1203,9 +1273,38 @@ default Mono<GetMappingsResponse> getMapping(GetMappingsRequest getMappingsReque
1203
1273
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html"> Indices
1204
1274
* Flush API on elastic.co</a>
1205
1275
* @since 4.1
1276
+ * @deprecated since 4.2, use {@link #getMapping(HttpHeaders, org.elasticsearch.client.indices.GetMappingsRequest)}
1206
1277
*/
1278
+ @ Deprecated
1207
1279
Mono <GetMappingsResponse > getMapping (HttpHeaders headers , GetMappingsRequest getMappingsRequest );
1208
1280
1281
+ /**
1282
+ * Execute the given {@link org.elasticsearch.client.indices.GetMappingsRequest} against the {@literal indices} API.
1283
+ *
1284
+ * @param getMappingsRequest must not be {@literal null}.
1285
+ * @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1286
+ * does not exist.
1287
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html"> Indices
1288
+ * Get mapping API on elastic.co</a>
1289
+ * @since 4.2
1290
+ */
1291
+ default Mono <org .elasticsearch .client .indices .GetMappingsResponse > getMapping (org .elasticsearch .client .indices .GetMappingsRequest getMappingsRequest ) {
1292
+ return getMapping (HttpHeaders .EMPTY , getMappingsRequest );
1293
+ }
1294
+
1295
+ /**
1296
+ * Execute the given {@link org.elasticsearch.client.indices.GetMappingsRequest} against the {@literal indices} API.
1297
+ *
1298
+ * @param headers Use {@link HttpHeaders} to provide eg. authentication data. Must not be {@literal null}.
1299
+ * @param getMappingsRequest must not be {@literal null}.
1300
+ * @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1301
+ * does not exist.
1302
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html"> Indices
1303
+ * Get mapping API on elastic.co</a>
1304
+ * @since 4.2
1305
+ */
1306
+ Mono <org .elasticsearch .client .indices .GetMappingsResponse > getMapping (HttpHeaders headers , org .elasticsearch .client .indices .GetMappingsRequest getMappingsRequest );
1307
+
1209
1308
/**
1210
1309
* Execute the given {@link GetFieldMappingsRequest} against the {@literal indices} API.
1211
1310
*
0 commit comments