15
15
*/
16
16
package org .springframework .data .elasticsearch .client .reactive ;
17
17
18
- import org .elasticsearch .client .indices .GetFieldMappingsRequest ;
19
- import org .elasticsearch .client .indices .GetFieldMappingsResponse ;
20
- import org .elasticsearch .index .reindex .UpdateByQueryRequest ;
21
- import org .springframework .data .elasticsearch .core .query .UpdateByQueryResponse ;
22
18
import reactor .core .publisher .Flux ;
23
19
import reactor .core .publisher .Mono ;
24
20
55
51
import org .elasticsearch .action .update .UpdateRequest ;
56
52
import org .elasticsearch .action .update .UpdateResponse ;
57
53
import org .elasticsearch .client .GetAliasesResponse ;
54
+ import org .elasticsearch .client .indices .GetFieldMappingsRequest ;
55
+ import org .elasticsearch .client .indices .GetFieldMappingsResponse ;
58
56
import org .elasticsearch .client .indices .GetIndexTemplatesRequest ;
59
57
import org .elasticsearch .client .indices .GetIndexTemplatesResponse ;
60
58
import org .elasticsearch .client .indices .IndexTemplatesExistRequest ;
61
59
import org .elasticsearch .client .indices .PutIndexTemplateRequest ;
62
60
import org .elasticsearch .index .get .GetResult ;
63
61
import org .elasticsearch .index .reindex .BulkByScrollResponse ;
64
62
import org .elasticsearch .index .reindex .DeleteByQueryRequest ;
63
+ import org .elasticsearch .index .reindex .UpdateByQueryRequest ;
65
64
import org .elasticsearch .search .SearchHit ;
66
65
import org .elasticsearch .search .aggregations .Aggregation ;
67
66
import org .elasticsearch .search .suggest .Suggest ;
68
67
import org .springframework .data .elasticsearch .client .ClientConfiguration ;
69
68
import org .springframework .data .elasticsearch .client .ElasticsearchHost ;
69
+ import org .springframework .data .elasticsearch .core .query .UpdateByQueryResponse ;
70
70
import org .springframework .http .HttpHeaders ;
71
71
import org .springframework .util .Assert ;
72
72
import org .springframework .util .CollectionUtils ;
@@ -601,12 +601,12 @@ default Mono<BulkByScrollResponse> deleteBy(DeleteByQueryRequest deleteRequest)
601
601
/**
602
602
* Execute a {@link UpdateByQueryRequest} against the {@literal update by query} API.
603
603
*
604
- * @param consumer never {@literal null}.
604
+ * @param consumer must not be {@literal null}.
605
605
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html">Update By
606
- * * Query API on elastic.co</a>
606
+ * * Query API on elastic.co</a>
607
607
* @return a {@link Mono} emitting operation response.
608
608
*/
609
- default Mono <UpdateByQueryResponse > updateBy (Consumer <UpdateByQueryRequest > consumer ){
609
+ default Mono <UpdateByQueryResponse > updateBy (Consumer <UpdateByQueryRequest > consumer ) {
610
610
611
611
final UpdateByQueryRequest request = new UpdateByQueryRequest ();
612
612
consumer .accept (request );
@@ -618,10 +618,10 @@ default Mono<UpdateByQueryResponse> updateBy(Consumer<UpdateByQueryRequest> cons
618
618
*
619
619
* @param updateRequest must not be {@literal null}.
620
620
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html">Update By
621
- * * Query API on elastic.co</a>
621
+ * * Query API on elastic.co</a>
622
622
* @return a {@link Mono} emitting operation response.
623
623
*/
624
- default Mono <UpdateByQueryResponse > updateBy (UpdateByQueryRequest updateRequest ){
624
+ default Mono <UpdateByQueryResponse > updateBy (UpdateByQueryRequest updateRequest ) {
625
625
return updateBy (HttpHeaders .EMPTY , updateRequest );
626
626
}
627
627
@@ -631,7 +631,7 @@ default Mono<UpdateByQueryResponse> updateBy(UpdateByQueryRequest updateRequest)
631
631
* @param headers Use {@link HttpHeaders} to provide eg. authentication data. Must not be {@literal null}.
632
632
* @param updateRequest must not be {@literal null}.
633
633
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html">Update By
634
- * * Query API on elastic.co</a>
634
+ * * Query API on elastic.co</a>
635
635
* @return a {@link Mono} emitting operation response.
636
636
*/
637
637
Mono <UpdateByQueryResponse > updateBy (HttpHeaders headers , UpdateByQueryRequest updateRequest );
@@ -1210,9 +1210,9 @@ default Mono<GetMappingsResponse> getMapping(GetMappingsRequest getMappingsReque
1210
1210
*
1211
1211
* @param consumer never {@literal null}.
1212
1212
* @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1213
- * does not exist.
1214
- * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html"> Indices
1215
- * Flush API on elastic.co</a>
1213
+ * does not exist.
1214
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html">
1215
+ * Indices Flush API on elastic.co</a>
1216
1216
* @since 4.2
1217
1217
*/
1218
1218
default Mono <GetFieldMappingsResponse > getFieldMapping (Consumer <GetFieldMappingsRequest > consumer ) {
@@ -1228,8 +1228,8 @@ default Mono<GetFieldMappingsResponse> getFieldMapping(Consumer<GetFieldMappings
1228
1228
* @param getFieldMappingsRequest must not be {@literal null}.
1229
1229
* @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1230
1230
* does not exist.
1231
- * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html"> Indices
1232
- * Flush API on elastic.co</a>
1231
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html">
1232
+ * Indices Flush API on elastic.co</a>
1233
1233
* @since 4.2
1234
1234
*/
1235
1235
default Mono <GetFieldMappingsResponse > getFieldMapping (GetFieldMappingsRequest getFieldMappingsRequest ) {
@@ -1243,15 +1243,16 @@ default Mono<GetFieldMappingsResponse> getFieldMapping(GetFieldMappingsRequest g
1243
1243
* @param getFieldMappingsRequest must not be {@literal null}.
1244
1244
* @return a {@link Mono} signalling operation completion or an {@link Mono#error(Throwable) error} if eg. the index
1245
1245
* does not exist.
1246
- * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html"> Indices
1247
- * Flush API on elastic.co</a>
1246
+ * @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html">
1247
+ * Indices Flush API on elastic.co</a>
1248
1248
* @since 4.2
1249
1249
*/
1250
- Mono <GetFieldMappingsResponse > getFieldMapping (HttpHeaders headers , GetFieldMappingsRequest getFieldMappingsRequest );
1250
+ Mono <GetFieldMappingsResponse > getFieldMapping (HttpHeaders headers ,
1251
+ GetFieldMappingsRequest getFieldMappingsRequest );
1251
1252
1252
1253
/**
1253
1254
* Execute the given {@link IndicesAliasesRequest} against the {@literal indices} API.
1254
- *
1255
+ *
1255
1256
* @param consumer never {@literal null}.
1256
1257
* @return a {@link Mono} signalling operation completion.
1257
1258
* @since 4.1
@@ -1264,7 +1265,7 @@ default Mono<Boolean> updateAliases(Consumer<IndicesAliasesRequest> consumer) {
1264
1265
1265
1266
/**
1266
1267
* Execute the given {@link IndicesAliasesRequest} against the {@literal indices} API.
1267
- *
1268
+ *
1268
1269
* @param indicesAliasesRequest must not be {@literal null}
1269
1270
* @return a {@link Mono} signalling operation completion.
1270
1271
* @since 4.1
@@ -1275,7 +1276,7 @@ default Mono<Boolean> updateAliases(IndicesAliasesRequest indicesAliasesRequest)
1275
1276
1276
1277
/**
1277
1278
* Execute the given {@link IndicesAliasesRequest} against the {@literal indices} API.
1278
- *
1279
+ *
1279
1280
* @param headers Use {@link HttpHeaders} to provide eg. authentication data. Must not be {@literal null}.
1280
1281
* @param indicesAliasesRequest must not be {@literal null}
1281
1282
* @return a {@link Mono} signalling operation completion.
0 commit comments