Skip to content

Commit d34f5d6

Browse files
authored
Prepare 8.18 (#257)
1 parent 6a82788 commit d34f5d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7056
-1222
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ that is compatible with the version of Elasticsearch you're using
4646

4747
```toml
4848
[dependencies]
49-
elasticsearch = "8.7.0-alpha.1"
49+
elasticsearch = "8.18.0-alpha.1"
5050
```
5151

5252
The following _optional_ dependencies may also be useful to create requests and read responses

elasticsearch/src/async_search.rs

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'b> AsyncSearchDeleteParts<'b> {
6666
}
6767
}
6868
}
69-
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
69+
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
7070
#[derive(Clone, Debug)]
7171
pub struct AsyncSearchDelete<'a, 'b> {
7272
transport: &'a Transport,
@@ -184,7 +184,7 @@ impl<'b> AsyncSearchGetParts<'b> {
184184
}
185185
}
186186
}
187-
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
187+
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
188188
#[derive(Clone, Debug)]
189189
pub struct AsyncSearchGet<'a, 'b> {
190190
transport: &'a Transport,
@@ -329,7 +329,7 @@ impl<'b> AsyncSearchStatusParts<'b> {
329329
}
330330
}
331331
}
332-
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
332+
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
333333
#[derive(Clone, Debug)]
334334
pub struct AsyncSearchStatus<'a, 'b> {
335335
transport: &'a Transport,
@@ -462,7 +462,7 @@ impl<'b> AsyncSearchSubmitParts<'b> {
462462
}
463463
}
464464
}
465-
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nExecutes a search request asynchronously."]
465+
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nExecutes a search request asynchronously."]
466466
#[derive(Clone, Debug)]
467467
pub struct AsyncSearchSubmit<'a, 'b, B> {
468468
transport: &'a Transport,
@@ -476,6 +476,7 @@ pub struct AsyncSearchSubmit<'a, 'b, B> {
476476
analyzer: Option<&'b str>,
477477
batched_reduce_size: Option<i64>,
478478
body: Option<B>,
479+
ccs_minimize_roundtrips: Option<bool>,
479480
default_operator: Option<DefaultOperator>,
480481
df: Option<&'b str>,
481482
docvalue_fields: Option<&'b [&'b str]>,
@@ -497,6 +498,7 @@ pub struct AsyncSearchSubmit<'a, 'b, B> {
497498
q: Option<&'b str>,
498499
request_cache: Option<bool>,
499500
request_timeout: Option<Duration>,
501+
rest_total_hits_as_int: Option<bool>,
500502
routing: Option<&'b [&'b str]>,
501503
search_type: Option<SearchType>,
502504
seq_no_primary_term: Option<bool>,
@@ -537,6 +539,7 @@ where
537539
analyzer: None,
538540
batched_reduce_size: None,
539541
body: None,
542+
ccs_minimize_roundtrips: None,
540543
default_operator: None,
541544
df: None,
542545
docvalue_fields: None,
@@ -557,6 +560,7 @@ where
557560
q: None,
558561
request_cache: None,
559562
request_timeout: None,
563+
rest_total_hits_as_int: None,
560564
routing: None,
561565
search_type: None,
562566
seq_no_primary_term: None,
@@ -635,6 +639,7 @@ where
635639
analyze_wildcard: self.analyze_wildcard,
636640
analyzer: self.analyzer,
637641
batched_reduce_size: self.batched_reduce_size,
642+
ccs_minimize_roundtrips: self.ccs_minimize_roundtrips,
638643
default_operator: self.default_operator,
639644
df: self.df,
640645
docvalue_fields: self.docvalue_fields,
@@ -656,6 +661,7 @@ where
656661
q: self.q,
657662
request_cache: self.request_cache,
658663
request_timeout: self.request_timeout,
664+
rest_total_hits_as_int: self.rest_total_hits_as_int,
659665
routing: self.routing,
660666
search_type: self.search_type,
661667
seq_no_primary_term: self.seq_no_primary_term,
@@ -677,6 +683,11 @@ where
677683
wait_for_completion_timeout: self.wait_for_completion_timeout,
678684
}
679685
}
686+
#[doc = "When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters."]
687+
pub fn ccs_minimize_roundtrips(mut self, ccs_minimize_roundtrips: bool) -> Self {
688+
self.ccs_minimize_roundtrips = Some(ccs_minimize_roundtrips);
689+
self
690+
}
680691
#[doc = "The default operator for query string query (AND or OR)"]
681692
pub fn default_operator(mut self, default_operator: DefaultOperator) -> Self {
682693
self.default_operator = Some(default_operator);
@@ -782,6 +793,11 @@ where
782793
self.request_timeout = Some(timeout);
783794
self
784795
}
796+
#[doc = "Indicates whether hits.total should be rendered as an integer or an object in the rest search response"]
797+
pub fn rest_total_hits_as_int(mut self, rest_total_hits_as_int: bool) -> Self {
798+
self.rest_total_hits_as_int = Some(rest_total_hits_as_int);
799+
self
800+
}
785801
#[doc = "A comma-separated list of specific routing values"]
786802
pub fn routing(mut self, routing: &'b [&'b str]) -> Self {
787803
self.routing = Some(routing);
@@ -898,6 +914,7 @@ where
898914
analyze_wildcard: Option<bool>,
899915
analyzer: Option<&'b str>,
900916
batched_reduce_size: Option<i64>,
917+
ccs_minimize_roundtrips: Option<bool>,
901918
default_operator: Option<DefaultOperator>,
902919
df: Option<&'b str>,
903920
#[serde(serialize_with = "crate::client::serialize_coll_qs")]
@@ -920,6 +937,7 @@ where
920937
pretty: Option<bool>,
921938
q: Option<&'b str>,
922939
request_cache: Option<bool>,
940+
rest_total_hits_as_int: Option<bool>,
923941
#[serde(serialize_with = "crate::client::serialize_coll_qs")]
924942
routing: Option<&'b [&'b str]>,
925943
search_type: Option<SearchType>,
@@ -953,6 +971,7 @@ where
953971
analyze_wildcard: self.analyze_wildcard,
954972
analyzer: self.analyzer,
955973
batched_reduce_size: self.batched_reduce_size,
974+
ccs_minimize_roundtrips: self.ccs_minimize_roundtrips,
956975
default_operator: self.default_operator,
957976
df: self.df,
958977
docvalue_fields: self.docvalue_fields,
@@ -972,6 +991,7 @@ where
972991
pretty: self.pretty,
973992
q: self.q,
974993
request_cache: self.request_cache,
994+
rest_total_hits_as_int: self.rest_total_hits_as_int,
975995
routing: self.routing,
976996
search_type: self.search_type,
977997
seq_no_primary_term: self.seq_no_primary_term,
@@ -1014,19 +1034,19 @@ impl<'a> AsyncSearch<'a> {
10141034
pub fn transport(&self) -> &Transport {
10151035
self.transport
10161036
}
1017-
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
1037+
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
10181038
pub fn delete<'b>(&'a self, parts: AsyncSearchDeleteParts<'b>) -> AsyncSearchDelete<'a, 'b> {
10191039
AsyncSearchDelete::new(self.transport(), parts)
10201040
}
1021-
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
1041+
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
10221042
pub fn get<'b>(&'a self, parts: AsyncSearchGetParts<'b>) -> AsyncSearchGet<'a, 'b> {
10231043
AsyncSearchGet::new(self.transport(), parts)
10241044
}
1025-
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
1045+
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
10261046
pub fn status<'b>(&'a self, parts: AsyncSearchStatusParts<'b>) -> AsyncSearchStatus<'a, 'b> {
10271047
AsyncSearchStatus::new(self.transport(), parts)
10281048
}
1029-
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nExecutes a search request asynchronously."]
1049+
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html)\n\nExecutes a search request asynchronously."]
10301050
pub fn submit<'b>(
10311051
&'a self,
10321052
parts: AsyncSearchSubmitParts<'b>,

elasticsearch/src/autoscaling.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> {
6666
}
6767
}
6868
}
69-
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
69+
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
7070
#[derive(Clone, Debug)]
7171
pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
7272
transport: &'a Transport,
@@ -199,7 +199,7 @@ impl AutoscalingGetAutoscalingCapacityParts {
199199
}
200200
}
201201
}
202-
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
202+
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
203203
#[derive(Clone, Debug)]
204204
pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> {
205205
transport: &'a Transport,
@@ -326,7 +326,7 @@ impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> {
326326
}
327327
}
328328
}
329-
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
329+
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
330330
#[derive(Clone, Debug)]
331331
pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> {
332332
transport: &'a Transport,
@@ -453,7 +453,7 @@ impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> {
453453
}
454454
}
455455
}
456-
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
456+
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
457457
#[derive(Clone, Debug)]
458458
pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> {
459459
transport: &'a Transport,
@@ -606,25 +606,25 @@ impl<'a> Autoscaling<'a> {
606606
pub fn transport(&self) -> &Transport {
607607
self.transport
608608
}
609-
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
609+
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
610610
pub fn delete_autoscaling_policy<'b>(
611611
&'a self,
612612
parts: AutoscalingDeleteAutoscalingPolicyParts<'b>,
613613
) -> AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
614614
AutoscalingDeleteAutoscalingPolicy::new(self.transport(), parts)
615615
}
616-
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
616+
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
617617
pub fn get_autoscaling_capacity<'b>(&'a self) -> AutoscalingGetAutoscalingCapacity<'a, 'b> {
618618
AutoscalingGetAutoscalingCapacity::new(self.transport())
619619
}
620-
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
620+
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
621621
pub fn get_autoscaling_policy<'b>(
622622
&'a self,
623623
parts: AutoscalingGetAutoscalingPolicyParts<'b>,
624624
) -> AutoscalingGetAutoscalingPolicy<'a, 'b> {
625625
AutoscalingGetAutoscalingPolicy::new(self.transport(), parts)
626626
}
627-
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
627+
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
628628
pub fn put_autoscaling_policy<'b>(
629629
&'a self,
630630
parts: AutoscalingPutAutoscalingPolicyParts<'b>,

0 commit comments

Comments
 (0)