elasticsearch 8.19.0__py3-none-any.whl → 8.19.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. elasticsearch/_async/client/__init__.py +39 -55
  2. elasticsearch/_async/client/cat.py +605 -35
  3. elasticsearch/_async/client/cluster.py +7 -2
  4. elasticsearch/_async/client/connector.py +3 -3
  5. elasticsearch/_async/client/esql.py +16 -6
  6. elasticsearch/_async/client/fleet.py +1 -5
  7. elasticsearch/_async/client/graph.py +1 -5
  8. elasticsearch/_async/client/ilm.py +2 -10
  9. elasticsearch/_async/client/indices.py +159 -32
  10. elasticsearch/_async/client/inference.py +142 -120
  11. elasticsearch/_async/client/nodes.py +2 -2
  12. elasticsearch/_async/client/shutdown.py +5 -15
  13. elasticsearch/_async/client/slm.py +1 -5
  14. elasticsearch/_async/client/snapshot.py +262 -112
  15. elasticsearch/_async/client/sql.py +1 -1
  16. elasticsearch/_async/client/streams.py +185 -0
  17. elasticsearch/_async/client/transform.py +60 -0
  18. elasticsearch/_async/client/watcher.py +1 -5
  19. elasticsearch/_async/helpers.py +58 -9
  20. elasticsearch/_sync/client/__init__.py +39 -55
  21. elasticsearch/_sync/client/cat.py +605 -35
  22. elasticsearch/_sync/client/cluster.py +7 -2
  23. elasticsearch/_sync/client/connector.py +3 -3
  24. elasticsearch/_sync/client/esql.py +16 -6
  25. elasticsearch/_sync/client/fleet.py +1 -5
  26. elasticsearch/_sync/client/graph.py +1 -5
  27. elasticsearch/_sync/client/ilm.py +2 -10
  28. elasticsearch/_sync/client/indices.py +159 -32
  29. elasticsearch/_sync/client/inference.py +142 -120
  30. elasticsearch/_sync/client/nodes.py +2 -2
  31. elasticsearch/_sync/client/shutdown.py +5 -15
  32. elasticsearch/_sync/client/slm.py +1 -5
  33. elasticsearch/_sync/client/snapshot.py +262 -112
  34. elasticsearch/_sync/client/sql.py +1 -1
  35. elasticsearch/_sync/client/streams.py +185 -0
  36. elasticsearch/_sync/client/transform.py +60 -0
  37. elasticsearch/_sync/client/watcher.py +1 -5
  38. elasticsearch/_version.py +2 -1
  39. elasticsearch/client.py +2 -0
  40. elasticsearch/compat.py +45 -1
  41. elasticsearch/dsl/__init__.py +28 -0
  42. elasticsearch/dsl/_async/document.py +84 -0
  43. elasticsearch/dsl/_sync/document.py +84 -0
  44. elasticsearch/dsl/aggs.py +117 -0
  45. elasticsearch/dsl/document_base.py +59 -1
  46. elasticsearch/dsl/field.py +60 -10
  47. elasticsearch/dsl/query.py +1 -1
  48. elasticsearch/dsl/response/__init__.py +3 -0
  49. elasticsearch/dsl/response/aggs.py +1 -1
  50. elasticsearch/dsl/types.py +325 -20
  51. elasticsearch/dsl/utils.py +1 -1
  52. elasticsearch/esql/__init__.py +2 -1
  53. elasticsearch/esql/esql.py +85 -34
  54. elasticsearch/esql/functions.py +37 -25
  55. elasticsearch/helpers/__init__.py +10 -1
  56. elasticsearch/helpers/actions.py +106 -33
  57. {elasticsearch-8.19.0.dist-info → elasticsearch-8.19.2.dist-info}/METADATA +2 -4
  58. {elasticsearch-8.19.0.dist-info → elasticsearch-8.19.2.dist-info}/RECORD +61 -59
  59. {elasticsearch-8.19.0.dist-info → elasticsearch-8.19.2.dist-info}/WHEEL +0 -0
  60. {elasticsearch-8.19.0.dist-info → elasticsearch-8.19.2.dist-info}/licenses/LICENSE +0 -0
  61. {elasticsearch-8.19.0.dist-info → elasticsearch-8.19.2.dist-info}/licenses/NOTICE +0 -0
@@ -170,6 +170,48 @@ class ChiSquareHeuristic(AttrDict[Any]):
170
170
  super().__init__(kwargs)
171
171
 
172
172
 
173
+ class ChunkingSettings(AttrDict[Any]):
174
+ """
175
+ :arg strategy: (required) The chunking strategy: `sentence` or `word`.
176
+ Defaults to `sentence` if omitted.
177
+ :arg max_chunk_size: (required) The maximum size of a chunk in words.
178
+ This value cannot be higher than `300` or lower than `20` (for
179
+ `sentence` strategy) or `10` (for `word` strategy). Defaults to
180
+ `250` if omitted.
181
+ :arg overlap: The number of overlapping words for chunks. It is
182
+ applicable only to a `word` chunking strategy. This value cannot
183
+ be higher than half the `max_chunk_size` value. Defaults to `100`
184
+ if omitted.
185
+ :arg sentence_overlap: The number of overlapping sentences for chunks.
186
+ It is applicable only for a `sentence` chunking strategy. It can
187
+ be either `1` or `0`. Defaults to `1` if omitted.
188
+ """
189
+
190
+ strategy: Union[str, DefaultType]
191
+ max_chunk_size: Union[int, DefaultType]
192
+ overlap: Union[int, DefaultType]
193
+ sentence_overlap: Union[int, DefaultType]
194
+
195
+ def __init__(
196
+ self,
197
+ *,
198
+ strategy: Union[str, DefaultType] = DEFAULT,
199
+ max_chunk_size: Union[int, DefaultType] = DEFAULT,
200
+ overlap: Union[int, DefaultType] = DEFAULT,
201
+ sentence_overlap: Union[int, DefaultType] = DEFAULT,
202
+ **kwargs: Any,
203
+ ):
204
+ if strategy is not DEFAULT:
205
+ kwargs["strategy"] = strategy
206
+ if max_chunk_size is not DEFAULT:
207
+ kwargs["max_chunk_size"] = max_chunk_size
208
+ if overlap is not DEFAULT:
209
+ kwargs["overlap"] = overlap
210
+ if sentence_overlap is not DEFAULT:
211
+ kwargs["sentence_overlap"] = sentence_overlap
212
+ super().__init__(kwargs)
213
+
214
+
173
215
  class ClassificationInferenceOptions(AttrDict[Any]):
174
216
  """
175
217
  :arg num_top_classes: Specifies the number of top class predictions to
@@ -2281,9 +2323,7 @@ class LikeDocument(AttrDict[Any]):
2281
2323
  per_field_analyzer: Union[Mapping[Union[str, InstrumentedField], str], DefaultType]
2282
2324
  routing: Union[str, DefaultType]
2283
2325
  version: Union[int, DefaultType]
2284
- version_type: Union[
2285
- Literal["internal", "external", "external_gte", "force"], DefaultType
2286
- ]
2326
+ version_type: Union[Literal["internal", "external", "external_gte"], DefaultType]
2287
2327
 
2288
2328
  def __init__(
2289
2329
  self,
@@ -2298,7 +2338,7 @@ class LikeDocument(AttrDict[Any]):
2298
2338
  routing: Union[str, DefaultType] = DEFAULT,
2299
2339
  version: Union[int, DefaultType] = DEFAULT,
2300
2340
  version_type: Union[
2301
- Literal["internal", "external", "external_gte", "force"], DefaultType
2341
+ Literal["internal", "external", "external_gte"], DefaultType
2302
2342
  ] = DEFAULT,
2303
2343
  **kwargs: Any,
2304
2344
  ):
@@ -2729,6 +2769,31 @@ class NumericFielddata(AttrDict[Any]):
2729
2769
  super().__init__(kwargs)
2730
2770
 
2731
2771
 
2772
+ class PValueHeuristic(AttrDict[Any]):
2773
+ """
2774
+ :arg background_is_superset:
2775
+ :arg normalize_above: Should the results be normalized when above the
2776
+ given value. Allows for consistent significance results at various
2777
+ scales. Note: `0` is a special value which means no normalization
2778
+ """
2779
+
2780
+ background_is_superset: Union[bool, DefaultType]
2781
+ normalize_above: Union[int, DefaultType]
2782
+
2783
+ def __init__(
2784
+ self,
2785
+ *,
2786
+ background_is_superset: Union[bool, DefaultType] = DEFAULT,
2787
+ normalize_above: Union[int, DefaultType] = DEFAULT,
2788
+ **kwargs: Any,
2789
+ ):
2790
+ if background_is_superset is not DEFAULT:
2791
+ kwargs["background_is_superset"] = background_is_superset
2792
+ if normalize_above is not DEFAULT:
2793
+ kwargs["normalize_above"] = normalize_above
2794
+ super().__init__(kwargs)
2795
+
2796
+
2732
2797
  class PercentageScoreHeuristic(AttrDict[Any]):
2733
2798
  pass
2734
2799
 
@@ -3119,6 +3184,26 @@ class ScriptedHeuristic(AttrDict[Any]):
3119
3184
  super().__init__(kwargs)
3120
3185
 
3121
3186
 
3187
+ class SemanticTextIndexOptions(AttrDict[Any]):
3188
+ """
3189
+ :arg dense_vector:
3190
+ """
3191
+
3192
+ dense_vector: Union["DenseVectorIndexOptions", Dict[str, Any], DefaultType]
3193
+
3194
+ def __init__(
3195
+ self,
3196
+ *,
3197
+ dense_vector: Union[
3198
+ "DenseVectorIndexOptions", Dict[str, Any], DefaultType
3199
+ ] = DEFAULT,
3200
+ **kwargs: Any,
3201
+ ):
3202
+ if dense_vector is not DEFAULT:
3203
+ kwargs["dense_vector"] = dense_vector
3204
+ super().__init__(kwargs)
3205
+
3206
+
3122
3207
  class ShapeFieldQuery(AttrDict[Any]):
3123
3208
  """
3124
3209
  :arg indexed_shape: Queries using a pre-indexed shape.
@@ -3196,10 +3281,15 @@ class SortOptions(AttrDict[Any]):
3196
3281
 
3197
3282
  class SourceFilter(AttrDict[Any]):
3198
3283
  """
3199
- :arg excludes:
3200
- :arg includes:
3284
+ :arg exclude_vectors: If `true`, vector fields are excluded from the
3285
+ returned source. This option takes precedence over `includes`:
3286
+ any vector field will remain excluded even if it matches an
3287
+ `includes` rule.
3288
+ :arg excludes: A list of fields to exclude from the returned source.
3289
+ :arg includes: A list of fields to include in the returned source.
3201
3290
  """
3202
3291
 
3292
+ exclude_vectors: Union[bool, DefaultType]
3203
3293
  excludes: Union[
3204
3294
  Union[str, InstrumentedField],
3205
3295
  Sequence[Union[str, InstrumentedField]],
@@ -3214,6 +3304,7 @@ class SourceFilter(AttrDict[Any]):
3214
3304
  def __init__(
3215
3305
  self,
3216
3306
  *,
3307
+ exclude_vectors: Union[bool, DefaultType] = DEFAULT,
3217
3308
  excludes: Union[
3218
3309
  Union[str, InstrumentedField],
3219
3310
  Sequence[Union[str, InstrumentedField]],
@@ -3226,6 +3317,8 @@ class SourceFilter(AttrDict[Any]):
3226
3317
  ] = DEFAULT,
3227
3318
  **kwargs: Any,
3228
3319
  ):
3320
+ if exclude_vectors is not DEFAULT:
3321
+ kwargs["exclude_vectors"] = exclude_vectors
3229
3322
  if excludes is not DEFAULT:
3230
3323
  kwargs["excludes"] = str(excludes)
3231
3324
  if includes is not DEFAULT:
@@ -3675,6 +3768,38 @@ class SpanWithinQuery(AttrDict[Any]):
3675
3768
  super().__init__(kwargs)
3676
3769
 
3677
3770
 
3771
+ class SparseVectorIndexOptions(AttrDict[Any]):
3772
+ """
3773
+ :arg prune: Whether to perform pruning, omitting the non-significant
3774
+ tokens from the query to improve query performance. If prune is
3775
+ true but the pruning_config is not specified, pruning will occur
3776
+ but default values will be used. Default: false
3777
+ :arg pruning_config: Optional pruning configuration. If enabled, this
3778
+ will omit non-significant tokens from the query in order to
3779
+ improve query performance. This is only used if prune is set to
3780
+ true. If prune is set to true but pruning_config is not specified,
3781
+ default values will be used.
3782
+ """
3783
+
3784
+ prune: Union[bool, DefaultType]
3785
+ pruning_config: Union["TokenPruningConfig", Dict[str, Any], DefaultType]
3786
+
3787
+ def __init__(
3788
+ self,
3789
+ *,
3790
+ prune: Union[bool, DefaultType] = DEFAULT,
3791
+ pruning_config: Union[
3792
+ "TokenPruningConfig", Dict[str, Any], DefaultType
3793
+ ] = DEFAULT,
3794
+ **kwargs: Any,
3795
+ ):
3796
+ if prune is not DEFAULT:
3797
+ kwargs["prune"] = prune
3798
+ if pruning_config is not DEFAULT:
3799
+ kwargs["pruning_config"] = pruning_config
3800
+ super().__init__(kwargs)
3801
+
3802
+
3678
3803
  class SuggestContext(AttrDict[Any]):
3679
3804
  """
3680
3805
  :arg name: (required)
@@ -3713,15 +3838,30 @@ class TDigest(AttrDict[Any]):
3713
3838
  :arg compression: Limits the maximum number of nodes used by the
3714
3839
  underlying TDigest algorithm to `20 * compression`, enabling
3715
3840
  control of memory usage and approximation error.
3841
+ :arg execution_hint: The default implementation of TDigest is
3842
+ optimized for performance, scaling to millions or even billions of
3843
+ sample values while maintaining acceptable accuracy levels (close
3844
+ to 1% relative error for millions of samples in some cases). To
3845
+ use an implementation optimized for accuracy, set this parameter
3846
+ to high_accuracy instead. Defaults to `default` if omitted.
3716
3847
  """
3717
3848
 
3718
3849
  compression: Union[int, DefaultType]
3850
+ execution_hint: Union[Literal["default", "high_accuracy"], DefaultType]
3719
3851
 
3720
3852
  def __init__(
3721
- self, *, compression: Union[int, DefaultType] = DEFAULT, **kwargs: Any
3853
+ self,
3854
+ *,
3855
+ compression: Union[int, DefaultType] = DEFAULT,
3856
+ execution_hint: Union[
3857
+ Literal["default", "high_accuracy"], DefaultType
3858
+ ] = DEFAULT,
3859
+ **kwargs: Any,
3722
3860
  ):
3723
3861
  if compression is not DEFAULT:
3724
3862
  kwargs["compression"] = compression
3863
+ if execution_hint is not DEFAULT:
3864
+ kwargs["execution_hint"] = execution_hint
3725
3865
  super().__init__(kwargs)
3726
3866
 
3727
3867
 
@@ -3907,24 +4047,25 @@ class TestPopulation(AttrDict[Any]):
3907
4047
 
3908
4048
  class TextEmbedding(AttrDict[Any]):
3909
4049
  """
3910
- :arg model_id: (required)
3911
4050
  :arg model_text: (required)
4051
+ :arg model_id: Model ID is required for all dense_vector fields but
4052
+ may be inferred for semantic_text fields
3912
4053
  """
3913
4054
 
3914
- model_id: Union[str, DefaultType]
3915
4055
  model_text: Union[str, DefaultType]
4056
+ model_id: Union[str, DefaultType]
3916
4057
 
3917
4058
  def __init__(
3918
4059
  self,
3919
4060
  *,
3920
- model_id: Union[str, DefaultType] = DEFAULT,
3921
4061
  model_text: Union[str, DefaultType] = DEFAULT,
4062
+ model_id: Union[str, DefaultType] = DEFAULT,
3922
4063
  **kwargs: Any,
3923
4064
  ):
3924
- if model_id is not DEFAULT:
3925
- kwargs["model_id"] = model_id
3926
4065
  if model_text is not DEFAULT:
3927
4066
  kwargs["model_text"] = model_text
4067
+ if model_id is not DEFAULT:
4068
+ kwargs["model_id"] = model_id
3928
4069
  super().__init__(kwargs)
3929
4070
 
3930
4071
 
@@ -4444,7 +4585,7 @@ class ArrayPercentilesItem(AttrDict[Any]):
4444
4585
  :arg value_as_string:
4445
4586
  """
4446
4587
 
4447
- key: str
4588
+ key: float
4448
4589
  value: Union[float, None]
4449
4590
  value_as_string: str
4450
4591
 
@@ -4555,6 +4696,82 @@ class CardinalityAggregate(AttrDict[Any]):
4555
4696
  meta: Mapping[str, Any]
4556
4697
 
4557
4698
 
4699
+ class CartesianBoundsAggregate(AttrDict[Any]):
4700
+ """
4701
+ :arg bounds:
4702
+ :arg meta:
4703
+ """
4704
+
4705
+ bounds: "TopLeftBottomRightGeoBounds"
4706
+ meta: Mapping[str, Any]
4707
+
4708
+
4709
+ class CartesianCentroidAggregate(AttrDict[Any]):
4710
+ """
4711
+ :arg count: (required)
4712
+ :arg location:
4713
+ :arg meta:
4714
+ """
4715
+
4716
+ count: int
4717
+ location: "CartesianPoint"
4718
+ meta: Mapping[str, Any]
4719
+
4720
+
4721
+ class CartesianPoint(AttrDict[Any]):
4722
+ """
4723
+ :arg x: (required)
4724
+ :arg y: (required)
4725
+ """
4726
+
4727
+ x: float
4728
+ y: float
4729
+
4730
+
4731
+ class ChangePointAggregate(AttrDict[Any]):
4732
+ """
4733
+ :arg type: (required)
4734
+ :arg bucket:
4735
+ :arg meta:
4736
+ """
4737
+
4738
+ type: "ChangeType"
4739
+ bucket: "ChangePointBucket"
4740
+ meta: Mapping[str, Any]
4741
+
4742
+
4743
+ class ChangePointBucket(AttrDict[Any]):
4744
+ """
4745
+ :arg key: (required)
4746
+ :arg doc_count: (required)
4747
+ """
4748
+
4749
+ key: Union[int, float, str, bool, None, Any]
4750
+ doc_count: int
4751
+
4752
+
4753
+ class ChangeType(AttrDict[Any]):
4754
+ """
4755
+ :arg dip:
4756
+ :arg distribution_change:
4757
+ :arg indeterminable:
4758
+ :arg non_stationary:
4759
+ :arg spike:
4760
+ :arg stationary:
4761
+ :arg step_change:
4762
+ :arg trend_change:
4763
+ """
4764
+
4765
+ dip: "Dip"
4766
+ distribution_change: "DistributionChange"
4767
+ indeterminable: "Indeterminable"
4768
+ non_stationary: "NonStationary"
4769
+ spike: "Spike"
4770
+ stationary: "Stationary"
4771
+ step_change: "StepChange"
4772
+ trend_change: "TrendChange"
4773
+
4774
+
4558
4775
  class ChildrenAggregate(AttrDict[Any]):
4559
4776
  """
4560
4777
  :arg doc_count: (required)
@@ -4832,6 +5049,26 @@ class DfsStatisticsProfile(AttrDict[Any]):
4832
5049
  children: Sequence["DfsStatisticsProfile"]
4833
5050
 
4834
5051
 
5052
+ class Dip(AttrDict[Any]):
5053
+ """
5054
+ :arg p_value: (required)
5055
+ :arg change_point: (required)
5056
+ """
5057
+
5058
+ p_value: float
5059
+ change_point: int
5060
+
5061
+
5062
+ class DistributionChange(AttrDict[Any]):
5063
+ """
5064
+ :arg p_value: (required)
5065
+ :arg change_point: (required)
5066
+ """
5067
+
5068
+ p_value: float
5069
+ change_point: int
5070
+
5071
+
4835
5072
  class DoubleTermsAggregate(AttrDict[Any]):
4836
5073
  """
4837
5074
  Result of a `terms` aggregation when the field is some kind of decimal
@@ -5290,7 +5527,9 @@ class HdrPercentileRanksAggregate(AttrDict[Any]):
5290
5527
  :arg meta:
5291
5528
  """
5292
5529
 
5293
- values: Union[Mapping[str, Union[str, int, None]], Sequence["ArrayPercentilesItem"]]
5530
+ values: Union[
5531
+ Mapping[str, Union[str, float, None]], Sequence["ArrayPercentilesItem"]
5532
+ ]
5294
5533
  meta: Mapping[str, Any]
5295
5534
 
5296
5535
 
@@ -5300,7 +5539,9 @@ class HdrPercentilesAggregate(AttrDict[Any]):
5300
5539
  :arg meta:
5301
5540
  """
5302
5541
 
5303
- values: Union[Mapping[str, Union[str, int, None]], Sequence["ArrayPercentilesItem"]]
5542
+ values: Union[
5543
+ Mapping[str, Union[str, float, None]], Sequence["ArrayPercentilesItem"]
5544
+ ]
5304
5545
  meta: Mapping[str, Any]
5305
5546
 
5306
5547
 
@@ -5391,6 +5632,14 @@ class HitsMetadata(AttrDict[Any]):
5391
5632
  max_score: Union[float, None]
5392
5633
 
5393
5634
 
5635
+ class Indeterminable(AttrDict[Any]):
5636
+ """
5637
+ :arg reason: (required)
5638
+ """
5639
+
5640
+ reason: str
5641
+
5642
+
5394
5643
  class InferenceAggregate(AttrDict[Any]):
5395
5644
  """
5396
5645
  :arg value:
@@ -5793,6 +6042,18 @@ class NestedIdentity(AttrDict[Any]):
5793
6042
  _nested: "NestedIdentity"
5794
6043
 
5795
6044
 
6045
+ class NonStationary(AttrDict[Any]):
6046
+ """
6047
+ :arg p_value: (required)
6048
+ :arg r_value: (required)
6049
+ :arg trend: (required)
6050
+ """
6051
+
6052
+ p_value: float
6053
+ r_value: float
6054
+ trend: str
6055
+
6056
+
5796
6057
  class ParentAggregate(AttrDict[Any]):
5797
6058
  """
5798
6059
  :arg doc_count: (required)
@@ -5809,7 +6070,9 @@ class PercentilesBucketAggregate(AttrDict[Any]):
5809
6070
  :arg meta:
5810
6071
  """
5811
6072
 
5812
- values: Union[Mapping[str, Union[str, int, None]], Sequence["ArrayPercentilesItem"]]
6073
+ values: Union[
6074
+ Mapping[str, Union[str, float, None]], Sequence["ArrayPercentilesItem"]
6075
+ ]
5813
6076
  meta: Mapping[str, Any]
5814
6077
 
5815
6078
 
@@ -6010,17 +6273,19 @@ class SearchProfile(AttrDict[Any]):
6010
6273
  class ShardFailure(AttrDict[Any]):
6011
6274
  """
6012
6275
  :arg reason: (required)
6013
- :arg shard: (required)
6014
6276
  :arg index:
6015
6277
  :arg node:
6278
+ :arg shard:
6016
6279
  :arg status:
6280
+ :arg primary:
6017
6281
  """
6018
6282
 
6019
6283
  reason: "ErrorCause"
6020
- shard: int
6021
6284
  index: str
6022
6285
  node: str
6286
+ shard: int
6023
6287
  status: str
6288
+ primary: bool
6024
6289
 
6025
6290
 
6026
6291
  class ShardProfile(AttrDict[Any]):
@@ -6146,6 +6411,16 @@ class SimpleValueAggregate(AttrDict[Any]):
6146
6411
  meta: Mapping[str, Any]
6147
6412
 
6148
6413
 
6414
+ class Spike(AttrDict[Any]):
6415
+ """
6416
+ :arg p_value: (required)
6417
+ :arg change_point: (required)
6418
+ """
6419
+
6420
+ p_value: float
6421
+ change_point: int
6422
+
6423
+
6149
6424
  class StandardDeviationBounds(AttrDict[Any]):
6150
6425
  """
6151
6426
  :arg upper: (required)
@@ -6182,6 +6457,10 @@ class StandardDeviationBoundsAsString(AttrDict[Any]):
6182
6457
  lower_sampling: str
6183
6458
 
6184
6459
 
6460
+ class Stationary(AttrDict[Any]):
6461
+ pass
6462
+
6463
+
6185
6464
  class StatsAggregate(AttrDict[Any]):
6186
6465
  """
6187
6466
  Statistics aggregation result. `min`, `max` and `avg` are missing if
@@ -6237,6 +6516,16 @@ class StatsBucketAggregate(AttrDict[Any]):
6237
6516
  meta: Mapping[str, Any]
6238
6517
 
6239
6518
 
6519
+ class StepChange(AttrDict[Any]):
6520
+ """
6521
+ :arg p_value: (required)
6522
+ :arg change_point: (required)
6523
+ """
6524
+
6525
+ p_value: float
6526
+ change_point: int
6527
+
6528
+
6240
6529
  class StringRareTermsAggregate(AttrDict[Any]):
6241
6530
  """
6242
6531
  Result of the `rare_terms` aggregation when the field is a string.
@@ -6344,7 +6633,9 @@ class TDigestPercentileRanksAggregate(AttrDict[Any]):
6344
6633
  :arg meta:
6345
6634
  """
6346
6635
 
6347
- values: Union[Mapping[str, Union[str, int, None]], Sequence["ArrayPercentilesItem"]]
6636
+ values: Union[
6637
+ Mapping[str, Union[str, float, None]], Sequence["ArrayPercentilesItem"]
6638
+ ]
6348
6639
  meta: Mapping[str, Any]
6349
6640
 
6350
6641
 
@@ -6354,7 +6645,9 @@ class TDigestPercentilesAggregate(AttrDict[Any]):
6354
6645
  :arg meta:
6355
6646
  """
6356
6647
 
6357
- values: Union[Mapping[str, Union[str, int, None]], Sequence["ArrayPercentilesItem"]]
6648
+ values: Union[
6649
+ Mapping[str, Union[str, float, None]], Sequence["ArrayPercentilesItem"]
6650
+ ]
6358
6651
  meta: Mapping[str, Any]
6359
6652
 
6360
6653
 
@@ -6464,6 +6757,18 @@ class TotalHits(AttrDict[Any]):
6464
6757
  value: int
6465
6758
 
6466
6759
 
6760
+ class TrendChange(AttrDict[Any]):
6761
+ """
6762
+ :arg p_value: (required)
6763
+ :arg r_value: (required)
6764
+ :arg change_point: (required)
6765
+ """
6766
+
6767
+ p_value: float
6768
+ r_value: float
6769
+ change_point: int
6770
+
6771
+
6467
6772
  class UnmappedRareTermsAggregate(AttrDict[Any]):
6468
6773
  """
6469
6774
  Result of a `rare_terms` aggregation when the field is unmapped.
@@ -603,7 +603,7 @@ class ObjectBase(AttrDict[Any]):
603
603
  # if this is a mapped field,
604
604
  f = self.__get_field(k)
605
605
  if f and f._coerce:
606
- v = f.serialize(v)
606
+ v = f.serialize(v, skip_empty=skip_empty)
607
607
 
608
608
  # if someone assigned AttrList, unwrap it
609
609
  if isinstance(v, AttrList):
@@ -15,4 +15,5 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
- from .esql import ESQL, and_, not_, or_ # noqa: F401
18
+ from ..dsl import E # noqa: F401
19
+ from .esql import ESQL, ESQLBase, and_, not_, or_ # noqa: F401