elasticsearch9 9.1.1__py3-none-any.whl → 9.1.3__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.
- elasticsearch9/_async/client/__init__.py +69 -65
- elasticsearch9/_async/client/async_search.py +3 -3
- elasticsearch9/_async/client/autoscaling.py +8 -4
- elasticsearch9/_async/client/cat.py +521 -27
- elasticsearch9/_async/client/ccr.py +10 -10
- elasticsearch9/_async/client/cluster.py +34 -33
- elasticsearch9/_async/client/connector.py +45 -44
- elasticsearch9/_async/client/dangling_indices.py +8 -12
- elasticsearch9/_async/client/enrich.py +10 -10
- elasticsearch9/_async/client/eql.py +10 -10
- elasticsearch9/_async/client/esql.py +16 -16
- elasticsearch9/_async/client/features.py +6 -6
- elasticsearch9/_async/client/fleet.py +8 -12
- elasticsearch9/_async/client/graph.py +3 -7
- elasticsearch9/_async/client/ilm.py +20 -28
- elasticsearch9/_async/client/indices.py +163 -169
- elasticsearch9/_async/client/inference.py +41 -127
- elasticsearch9/_async/client/ingest.py +9 -9
- elasticsearch9/_async/client/license.py +5 -7
- elasticsearch9/_async/client/logstash.py +7 -5
- elasticsearch9/_async/client/migration.py +6 -6
- elasticsearch9/_async/client/ml.py +125 -85
- elasticsearch9/_async/client/monitoring.py +4 -3
- elasticsearch9/_async/client/nodes.py +17 -17
- elasticsearch9/_async/client/query_rules.py +16 -16
- elasticsearch9/_async/client/rollup.py +21 -21
- elasticsearch9/_async/client/search_application.py +19 -19
- elasticsearch9/_async/client/searchable_snapshots.py +10 -10
- elasticsearch9/_async/client/security.py +8 -7
- elasticsearch9/_async/client/shutdown.py +14 -19
- elasticsearch9/_async/client/simulate.py +4 -4
- elasticsearch9/_async/client/slm.py +18 -22
- elasticsearch9/_async/client/snapshot.py +20 -20
- elasticsearch9/_async/client/sql.py +10 -10
- elasticsearch9/_async/client/streams.py +186 -0
- elasticsearch9/_async/client/synonyms.py +10 -10
- elasticsearch9/_async/client/tasks.py +8 -8
- elasticsearch9/_async/client/text_structure.py +13 -9
- elasticsearch9/_async/client/transform.py +51 -12
- elasticsearch9/_async/client/utils.py +4 -2
- elasticsearch9/_async/client/watcher.py +27 -31
- elasticsearch9/_async/client/xpack.py +6 -5
- elasticsearch9/_async/helpers.py +58 -9
- elasticsearch9/_sync/client/__init__.py +71 -65
- elasticsearch9/_sync/client/async_search.py +3 -3
- elasticsearch9/_sync/client/autoscaling.py +8 -4
- elasticsearch9/_sync/client/cat.py +521 -27
- elasticsearch9/_sync/client/ccr.py +10 -10
- elasticsearch9/_sync/client/cluster.py +34 -33
- elasticsearch9/_sync/client/connector.py +45 -44
- elasticsearch9/_sync/client/dangling_indices.py +8 -12
- elasticsearch9/_sync/client/enrich.py +10 -10
- elasticsearch9/_sync/client/eql.py +10 -10
- elasticsearch9/_sync/client/esql.py +16 -16
- elasticsearch9/_sync/client/features.py +6 -6
- elasticsearch9/_sync/client/fleet.py +8 -12
- elasticsearch9/_sync/client/graph.py +3 -7
- elasticsearch9/_sync/client/ilm.py +20 -28
- elasticsearch9/_sync/client/indices.py +163 -169
- elasticsearch9/_sync/client/inference.py +41 -127
- elasticsearch9/_sync/client/ingest.py +9 -9
- elasticsearch9/_sync/client/license.py +5 -7
- elasticsearch9/_sync/client/logstash.py +7 -5
- elasticsearch9/_sync/client/migration.py +6 -6
- elasticsearch9/_sync/client/ml.py +125 -85
- elasticsearch9/_sync/client/monitoring.py +4 -3
- elasticsearch9/_sync/client/nodes.py +17 -17
- elasticsearch9/_sync/client/query_rules.py +16 -16
- elasticsearch9/_sync/client/rollup.py +21 -21
- elasticsearch9/_sync/client/search_application.py +19 -19
- elasticsearch9/_sync/client/searchable_snapshots.py +10 -10
- elasticsearch9/_sync/client/security.py +8 -7
- elasticsearch9/_sync/client/shutdown.py +14 -19
- elasticsearch9/_sync/client/simulate.py +4 -4
- elasticsearch9/_sync/client/slm.py +18 -22
- elasticsearch9/_sync/client/snapshot.py +20 -20
- elasticsearch9/_sync/client/sql.py +10 -10
- elasticsearch9/_sync/client/streams.py +186 -0
- elasticsearch9/_sync/client/synonyms.py +10 -10
- elasticsearch9/_sync/client/tasks.py +8 -8
- elasticsearch9/_sync/client/text_structure.py +13 -9
- elasticsearch9/_sync/client/transform.py +51 -12
- elasticsearch9/_sync/client/utils.py +16 -2
- elasticsearch9/_sync/client/watcher.py +27 -31
- elasticsearch9/_sync/client/xpack.py +6 -5
- elasticsearch9/_version.py +2 -1
- elasticsearch9/client.py +2 -0
- elasticsearch9/compat.py +43 -1
- elasticsearch9/dsl/__init__.py +28 -0
- elasticsearch9/dsl/_async/document.py +4 -5
- elasticsearch9/dsl/_async/index.py +1 -1
- elasticsearch9/dsl/_async/search.py +2 -3
- elasticsearch9/dsl/_sync/document.py +4 -5
- elasticsearch9/dsl/_sync/index.py +1 -1
- elasticsearch9/dsl/_sync/search.py +2 -3
- elasticsearch9/dsl/aggs.py +100 -3
- elasticsearch9/dsl/async_connections.py +1 -2
- elasticsearch9/dsl/connections.py +1 -2
- elasticsearch9/dsl/document_base.py +15 -0
- elasticsearch9/dsl/field.py +12 -1
- elasticsearch9/dsl/query.py +23 -0
- elasticsearch9/dsl/response/__init__.py +3 -0
- elasticsearch9/dsl/serializer.py +1 -2
- elasticsearch9/dsl/types.py +185 -5
- elasticsearch9/dsl/utils.py +1 -2
- elasticsearch9/esql/esql.py +1 -1
- elasticsearch9/esql/functions.py +2 -2
- elasticsearch9/helpers/__init__.py +10 -1
- elasticsearch9/helpers/actions.py +106 -33
- elasticsearch9/helpers/vectorstore/__init__.py +7 -7
- elasticsearch9/helpers/vectorstore/_async/_utils.py +1 -1
- elasticsearch9/helpers/vectorstore/_async/embedding_service.py +2 -2
- elasticsearch9/helpers/vectorstore/_async/strategies.py +3 -3
- elasticsearch9/helpers/vectorstore/_async/vectorstore.py +5 -5
- elasticsearch9/helpers/vectorstore/_sync/_utils.py +1 -1
- elasticsearch9/helpers/vectorstore/_sync/embedding_service.py +2 -2
- elasticsearch9/helpers/vectorstore/_sync/strategies.py +3 -3
- elasticsearch9/helpers/vectorstore/_sync/vectorstore.py +5 -5
- {elasticsearch9-9.1.1.dist-info → elasticsearch9-9.1.3.dist-info}/METADATA +2 -2
- elasticsearch9-9.1.3.dist-info/RECORD +165 -0
- {elasticsearch9-9.1.1.dist-info → elasticsearch9-9.1.3.dist-info}/WHEEL +1 -1
- elasticsearch9-9.1.1.dist-info/RECORD +0 -163
- {elasticsearch9-9.1.1.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch9-9.1.1.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/NOTICE +0 -0
elasticsearch9/dsl/aggs.py
CHANGED
|
@@ -653,6 +653,54 @@ class Cardinality(Agg[_R]):
|
|
|
653
653
|
)
|
|
654
654
|
|
|
655
655
|
|
|
656
|
+
class CartesianBounds(Agg[_R]):
|
|
657
|
+
"""
|
|
658
|
+
A metric aggregation that computes the spatial bounding box containing
|
|
659
|
+
all values for a Point or Shape field.
|
|
660
|
+
|
|
661
|
+
:arg field: The field on which to run the aggregation.
|
|
662
|
+
:arg missing: The value to apply to documents that do not have a
|
|
663
|
+
value. By default, documents without a value are ignored.
|
|
664
|
+
:arg script:
|
|
665
|
+
"""
|
|
666
|
+
|
|
667
|
+
name = "cartesian_bounds"
|
|
668
|
+
|
|
669
|
+
def __init__(
|
|
670
|
+
self,
|
|
671
|
+
*,
|
|
672
|
+
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
673
|
+
missing: Union[str, int, float, bool, "DefaultType"] = DEFAULT,
|
|
674
|
+
script: Union["types.Script", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
675
|
+
**kwargs: Any,
|
|
676
|
+
):
|
|
677
|
+
super().__init__(field=field, missing=missing, script=script, **kwargs)
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
class CartesianCentroid(Agg[_R]):
|
|
681
|
+
"""
|
|
682
|
+
A metric aggregation that computes the weighted centroid from all
|
|
683
|
+
coordinate values for point and shape fields.
|
|
684
|
+
|
|
685
|
+
:arg field: The field on which to run the aggregation.
|
|
686
|
+
:arg missing: The value to apply to documents that do not have a
|
|
687
|
+
value. By default, documents without a value are ignored.
|
|
688
|
+
:arg script:
|
|
689
|
+
"""
|
|
690
|
+
|
|
691
|
+
name = "cartesian_centroid"
|
|
692
|
+
|
|
693
|
+
def __init__(
|
|
694
|
+
self,
|
|
695
|
+
*,
|
|
696
|
+
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
697
|
+
missing: Union[str, int, float, bool, "DefaultType"] = DEFAULT,
|
|
698
|
+
script: Union["types.Script", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
699
|
+
**kwargs: Any,
|
|
700
|
+
):
|
|
701
|
+
super().__init__(field=field, missing=missing, script=script, **kwargs)
|
|
702
|
+
|
|
703
|
+
|
|
656
704
|
class CategorizeText(Bucket[_R]):
|
|
657
705
|
"""
|
|
658
706
|
A multi-bucket aggregation that groups semi-structured text into
|
|
@@ -735,6 +783,43 @@ class CategorizeText(Bucket[_R]):
|
|
|
735
783
|
)
|
|
736
784
|
|
|
737
785
|
|
|
786
|
+
class ChangePoint(Pipeline[_R]):
|
|
787
|
+
"""
|
|
788
|
+
A sibling pipeline that detects, spikes, dips, and change points in a
|
|
789
|
+
metric. Given a distribution of values provided by the sibling multi-
|
|
790
|
+
bucket aggregation, this aggregation indicates the bucket of any spike
|
|
791
|
+
or dip and/or the bucket at which the largest change in the
|
|
792
|
+
distribution of values, if they are statistically significant. There
|
|
793
|
+
must be at least 22 bucketed values. Fewer than 1,000 is preferred.
|
|
794
|
+
|
|
795
|
+
:arg format: `DecimalFormat` pattern for the output value. If
|
|
796
|
+
specified, the formatted value is returned in the aggregation’s
|
|
797
|
+
`value_as_string` property.
|
|
798
|
+
:arg gap_policy: Policy to apply when gaps are found in the data.
|
|
799
|
+
Defaults to `skip` if omitted.
|
|
800
|
+
:arg buckets_path: Path to the buckets that contain one set of values
|
|
801
|
+
to correlate.
|
|
802
|
+
"""
|
|
803
|
+
|
|
804
|
+
name = "change_point"
|
|
805
|
+
|
|
806
|
+
def __init__(
|
|
807
|
+
self,
|
|
808
|
+
*,
|
|
809
|
+
format: Union[str, "DefaultType"] = DEFAULT,
|
|
810
|
+
gap_policy: Union[
|
|
811
|
+
Literal["skip", "insert_zeros", "keep_values"], "DefaultType"
|
|
812
|
+
] = DEFAULT,
|
|
813
|
+
buckets_path: Union[
|
|
814
|
+
str, Sequence[str], Mapping[str, str], "DefaultType"
|
|
815
|
+
] = DEFAULT,
|
|
816
|
+
**kwargs: Any,
|
|
817
|
+
):
|
|
818
|
+
super().__init__(
|
|
819
|
+
format=format, gap_policy=gap_policy, buckets_path=buckets_path, **kwargs
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
|
|
738
823
|
class Children(Bucket[_R]):
|
|
739
824
|
"""
|
|
740
825
|
A single bucket aggregation that selects child documents that have the
|
|
@@ -1410,7 +1495,7 @@ class GeohashGrid(Bucket[_R]):
|
|
|
1410
1495
|
"DefaultType",
|
|
1411
1496
|
] = DEFAULT,
|
|
1412
1497
|
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1413
|
-
precision: Union[
|
|
1498
|
+
precision: Union[int, str, "DefaultType"] = DEFAULT,
|
|
1414
1499
|
shard_size: Union[int, "DefaultType"] = DEFAULT,
|
|
1415
1500
|
size: Union[int, "DefaultType"] = DEFAULT,
|
|
1416
1501
|
**kwargs: Any,
|
|
@@ -1494,7 +1579,7 @@ class GeotileGrid(Bucket[_R]):
|
|
|
1494
1579
|
self,
|
|
1495
1580
|
*,
|
|
1496
1581
|
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1497
|
-
precision: Union[
|
|
1582
|
+
precision: Union[int, "DefaultType"] = DEFAULT,
|
|
1498
1583
|
shard_size: Union[int, "DefaultType"] = DEFAULT,
|
|
1499
1584
|
size: Union[int, "DefaultType"] = DEFAULT,
|
|
1500
1585
|
bounds: Union[
|
|
@@ -2595,7 +2680,7 @@ class Percentiles(Agg[_R]):
|
|
|
2595
2680
|
self,
|
|
2596
2681
|
*,
|
|
2597
2682
|
keyed: Union[bool, "DefaultType"] = DEFAULT,
|
|
2598
|
-
percents: Union[Sequence[float], "DefaultType"] = DEFAULT,
|
|
2683
|
+
percents: Union[float, Sequence[float], "DefaultType"] = DEFAULT,
|
|
2599
2684
|
hdr: Union["types.HdrMethod", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2600
2685
|
tdigest: Union["types.TDigest", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2601
2686
|
format: Union[str, "DefaultType"] = DEFAULT,
|
|
@@ -2980,6 +3065,14 @@ class SignificantTerms(Bucket[_R]):
|
|
|
2980
3065
|
the foreground sample with a term divided by the number of
|
|
2981
3066
|
documents in the background with the term.
|
|
2982
3067
|
:arg script_heuristic: Customized score, implemented via a script.
|
|
3068
|
+
:arg p_value: Significant terms heuristic that calculates the p-value
|
|
3069
|
+
between the term existing in foreground and background sets. The
|
|
3070
|
+
p-value is the probability of obtaining test results at least as
|
|
3071
|
+
extreme as the results actually observed, under the assumption
|
|
3072
|
+
that the null hypothesis is correct. The p-value is calculated
|
|
3073
|
+
assuming that the foreground set and the background set are
|
|
3074
|
+
independent https://en.wikipedia.org/wiki/Bernoulli_trial, with
|
|
3075
|
+
the null hypothesis that the probabilities are the same.
|
|
2983
3076
|
:arg shard_min_doc_count: Regulates the certainty a shard has if the
|
|
2984
3077
|
term should actually be added to the candidate list or not with
|
|
2985
3078
|
respect to the `min_doc_count`. Terms will only be considered if
|
|
@@ -3033,6 +3126,9 @@ class SignificantTerms(Bucket[_R]):
|
|
|
3033
3126
|
script_heuristic: Union[
|
|
3034
3127
|
"types.ScriptedHeuristic", Dict[str, Any], "DefaultType"
|
|
3035
3128
|
] = DEFAULT,
|
|
3129
|
+
p_value: Union[
|
|
3130
|
+
"types.PValueHeuristic", Dict[str, Any], "DefaultType"
|
|
3131
|
+
] = DEFAULT,
|
|
3036
3132
|
shard_min_doc_count: Union[int, "DefaultType"] = DEFAULT,
|
|
3037
3133
|
shard_size: Union[int, "DefaultType"] = DEFAULT,
|
|
3038
3134
|
size: Union[int, "DefaultType"] = DEFAULT,
|
|
@@ -3051,6 +3147,7 @@ class SignificantTerms(Bucket[_R]):
|
|
|
3051
3147
|
mutual_information=mutual_information,
|
|
3052
3148
|
percentage=percentage,
|
|
3053
3149
|
script_heuristic=script_heuristic,
|
|
3150
|
+
p_value=p_value,
|
|
3054
3151
|
shard_min_doc_count=shard_min_doc_count,
|
|
3055
3152
|
shard_size=shard_size,
|
|
3056
3153
|
size=size,
|
|
@@ -34,6 +34,11 @@ from typing import (
|
|
|
34
34
|
overload,
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
+
try:
|
|
38
|
+
import annotationlib
|
|
39
|
+
except ImportError:
|
|
40
|
+
annotationlib = None # type: ignore[assignment]
|
|
41
|
+
|
|
37
42
|
try:
|
|
38
43
|
from types import UnionType
|
|
39
44
|
except ImportError:
|
|
@@ -332,6 +337,16 @@ class DocumentOptions:
|
|
|
332
337
|
# # ignore attributes
|
|
333
338
|
# field10: ClassVar[string] = "a regular class variable"
|
|
334
339
|
annotations = attrs.get("__annotations__", {})
|
|
340
|
+
if not annotations and annotationlib:
|
|
341
|
+
# Python 3.14+ uses annotationlib
|
|
342
|
+
annotate = annotationlib.get_annotate_from_class_namespace(attrs)
|
|
343
|
+
if annotate:
|
|
344
|
+
annotations = (
|
|
345
|
+
annotationlib.call_annotate_function(
|
|
346
|
+
annotate, format=annotationlib.Format.VALUE
|
|
347
|
+
)
|
|
348
|
+
or {}
|
|
349
|
+
)
|
|
335
350
|
fields = {n for n in attrs if isinstance(attrs[n], Field)}
|
|
336
351
|
fields.update(annotations.keys())
|
|
337
352
|
field_defaults = {}
|
elasticsearch9/dsl/field.py
CHANGED
|
@@ -572,7 +572,11 @@ class Object(Field):
|
|
|
572
572
|
if isinstance(data, collections.abc.Mapping):
|
|
573
573
|
return data
|
|
574
574
|
|
|
575
|
-
|
|
575
|
+
try:
|
|
576
|
+
return data.to_dict(skip_empty=skip_empty)
|
|
577
|
+
except TypeError:
|
|
578
|
+
# this would only happen if an AttrDict was given instead of an InnerDoc
|
|
579
|
+
return data.to_dict()
|
|
576
580
|
|
|
577
581
|
def clean(self, data: Any) -> Any:
|
|
578
582
|
data = super().clean(data)
|
|
@@ -3867,9 +3871,13 @@ class SemanticText(Field):
|
|
|
3867
3871
|
sent in the inference endpoint associated with inference_id. If
|
|
3868
3872
|
chunking settings are updated, they will not be applied to
|
|
3869
3873
|
existing documents until they are reindexed.
|
|
3874
|
+
:arg fields:
|
|
3870
3875
|
"""
|
|
3871
3876
|
|
|
3872
3877
|
name = "semantic_text"
|
|
3878
|
+
_param_defs = {
|
|
3879
|
+
"fields": {"type": "field", "hash": True},
|
|
3880
|
+
}
|
|
3873
3881
|
|
|
3874
3882
|
def __init__(
|
|
3875
3883
|
self,
|
|
@@ -3880,6 +3888,7 @@ class SemanticText(Field):
|
|
|
3880
3888
|
chunking_settings: Union[
|
|
3881
3889
|
"types.ChunkingSettings", Dict[str, Any], "DefaultType"
|
|
3882
3890
|
] = DEFAULT,
|
|
3891
|
+
fields: Union[Mapping[str, Field], "DefaultType"] = DEFAULT,
|
|
3883
3892
|
**kwargs: Any,
|
|
3884
3893
|
):
|
|
3885
3894
|
if meta is not DEFAULT:
|
|
@@ -3890,6 +3899,8 @@ class SemanticText(Field):
|
|
|
3890
3899
|
kwargs["search_inference_id"] = search_inference_id
|
|
3891
3900
|
if chunking_settings is not DEFAULT:
|
|
3892
3901
|
kwargs["chunking_settings"] = chunking_settings
|
|
3902
|
+
if fields is not DEFAULT:
|
|
3903
|
+
kwargs["fields"] = fields
|
|
3893
3904
|
super().__init__(*args, **kwargs)
|
|
3894
3905
|
|
|
3895
3906
|
|
elasticsearch9/dsl/query.py
CHANGED
|
@@ -370,6 +370,7 @@ class Common(Query):
|
|
|
370
370
|
_value: Union[
|
|
371
371
|
"types.CommonTermsQuery", Dict[str, Any], "DefaultType"
|
|
372
372
|
] = DEFAULT,
|
|
373
|
+
/,
|
|
373
374
|
**kwargs: Any,
|
|
374
375
|
):
|
|
375
376
|
if _field is not DEFAULT:
|
|
@@ -666,6 +667,7 @@ class Fuzzy(Query):
|
|
|
666
667
|
self,
|
|
667
668
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
668
669
|
_value: Union["types.FuzzyQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
670
|
+
/,
|
|
669
671
|
**kwargs: Any,
|
|
670
672
|
):
|
|
671
673
|
if _field is not DEFAULT:
|
|
@@ -708,6 +710,7 @@ class GeoBoundingBox(Query):
|
|
|
708
710
|
Dict[str, Any],
|
|
709
711
|
"DefaultType",
|
|
710
712
|
] = DEFAULT,
|
|
713
|
+
/,
|
|
711
714
|
*,
|
|
712
715
|
type: Union[Literal["memory", "indexed"], "DefaultType"] = DEFAULT,
|
|
713
716
|
validation_method: Union[
|
|
@@ -771,6 +774,7 @@ class GeoDistance(Query):
|
|
|
771
774
|
Dict[str, Any],
|
|
772
775
|
"DefaultType",
|
|
773
776
|
] = DEFAULT,
|
|
777
|
+
/,
|
|
774
778
|
*,
|
|
775
779
|
distance: Union[str, "DefaultType"] = DEFAULT,
|
|
776
780
|
distance_type: Union[Literal["arc", "plane"], "DefaultType"] = DEFAULT,
|
|
@@ -810,6 +814,7 @@ class GeoGrid(Query):
|
|
|
810
814
|
self,
|
|
811
815
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
812
816
|
_value: Union["types.GeoGridQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
817
|
+
/,
|
|
813
818
|
**kwargs: Any,
|
|
814
819
|
):
|
|
815
820
|
if _field is not DEFAULT:
|
|
@@ -839,6 +844,7 @@ class GeoPolygon(Query):
|
|
|
839
844
|
_value: Union[
|
|
840
845
|
"types.GeoPolygonPoints", Dict[str, Any], "DefaultType"
|
|
841
846
|
] = DEFAULT,
|
|
847
|
+
/,
|
|
842
848
|
*,
|
|
843
849
|
validation_method: Union[
|
|
844
850
|
Literal["coerce", "ignore_malformed", "strict"], "DefaultType"
|
|
@@ -885,6 +891,7 @@ class GeoShape(Query):
|
|
|
885
891
|
_value: Union[
|
|
886
892
|
"types.GeoShapeFieldQuery", Dict[str, Any], "DefaultType"
|
|
887
893
|
] = DEFAULT,
|
|
894
|
+
/,
|
|
888
895
|
*,
|
|
889
896
|
ignore_unmapped: Union[bool, "DefaultType"] = DEFAULT,
|
|
890
897
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
@@ -1060,6 +1067,7 @@ class Intervals(Query):
|
|
|
1060
1067
|
self,
|
|
1061
1068
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1062
1069
|
_value: Union["types.IntervalsQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1070
|
+
/,
|
|
1063
1071
|
**kwargs: Any,
|
|
1064
1072
|
):
|
|
1065
1073
|
if _field is not DEFAULT:
|
|
@@ -1147,6 +1155,7 @@ class Match(Query):
|
|
|
1147
1155
|
self,
|
|
1148
1156
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1149
1157
|
_value: Union["types.MatchQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1158
|
+
/,
|
|
1150
1159
|
**kwargs: Any,
|
|
1151
1160
|
):
|
|
1152
1161
|
if _field is not DEFAULT:
|
|
@@ -1212,6 +1221,7 @@ class MatchBoolPrefix(Query):
|
|
|
1212
1221
|
_value: Union[
|
|
1213
1222
|
"types.MatchBoolPrefixQuery", Dict[str, Any], "DefaultType"
|
|
1214
1223
|
] = DEFAULT,
|
|
1224
|
+
/,
|
|
1215
1225
|
**kwargs: Any,
|
|
1216
1226
|
):
|
|
1217
1227
|
if _field is not DEFAULT:
|
|
@@ -1272,6 +1282,7 @@ class MatchPhrase(Query):
|
|
|
1272
1282
|
_value: Union[
|
|
1273
1283
|
"types.MatchPhraseQuery", Dict[str, Any], "DefaultType"
|
|
1274
1284
|
] = DEFAULT,
|
|
1285
|
+
/,
|
|
1275
1286
|
**kwargs: Any,
|
|
1276
1287
|
):
|
|
1277
1288
|
if _field is not DEFAULT:
|
|
@@ -1297,6 +1308,7 @@ class MatchPhrasePrefix(Query):
|
|
|
1297
1308
|
_value: Union[
|
|
1298
1309
|
"types.MatchPhrasePrefixQuery", Dict[str, Any], "DefaultType"
|
|
1299
1310
|
] = DEFAULT,
|
|
1311
|
+
/,
|
|
1300
1312
|
**kwargs: Any,
|
|
1301
1313
|
):
|
|
1302
1314
|
if _field is not DEFAULT:
|
|
@@ -1780,6 +1792,7 @@ class Prefix(Query):
|
|
|
1780
1792
|
self,
|
|
1781
1793
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1782
1794
|
_value: Union["types.PrefixQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1795
|
+
/,
|
|
1783
1796
|
**kwargs: Any,
|
|
1784
1797
|
):
|
|
1785
1798
|
if _field is not DEFAULT:
|
|
@@ -1946,6 +1959,7 @@ class Range(Query):
|
|
|
1946
1959
|
self,
|
|
1947
1960
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1948
1961
|
_value: Union["wrappers.Range[Any]", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1962
|
+
/,
|
|
1949
1963
|
**kwargs: Any,
|
|
1950
1964
|
):
|
|
1951
1965
|
if _field is not DEFAULT:
|
|
@@ -2024,6 +2038,7 @@ class Regexp(Query):
|
|
|
2024
2038
|
self,
|
|
2025
2039
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2026
2040
|
_value: Union["types.RegexpQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2041
|
+
/,
|
|
2027
2042
|
**kwargs: Any,
|
|
2028
2043
|
):
|
|
2029
2044
|
if _field is not DEFAULT:
|
|
@@ -2194,6 +2209,7 @@ class Shape(Query):
|
|
|
2194
2209
|
self,
|
|
2195
2210
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2196
2211
|
_value: Union["types.ShapeFieldQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2212
|
+
/,
|
|
2197
2213
|
*,
|
|
2198
2214
|
ignore_unmapped: Union[bool, "DefaultType"] = DEFAULT,
|
|
2199
2215
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
@@ -2552,6 +2568,7 @@ class SpanTerm(Query):
|
|
|
2552
2568
|
self,
|
|
2553
2569
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2554
2570
|
_value: Union["types.SpanTermQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2571
|
+
/,
|
|
2555
2572
|
**kwargs: Any,
|
|
2556
2573
|
):
|
|
2557
2574
|
if _field is not DEFAULT:
|
|
@@ -2672,6 +2689,7 @@ class Term(Query):
|
|
|
2672
2689
|
self,
|
|
2673
2690
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2674
2691
|
_value: Union["types.TermQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2692
|
+
/,
|
|
2675
2693
|
**kwargs: Any,
|
|
2676
2694
|
):
|
|
2677
2695
|
if _field is not DEFAULT:
|
|
@@ -2706,6 +2724,7 @@ class Terms(Query):
|
|
|
2706
2724
|
Dict[str, Any],
|
|
2707
2725
|
"DefaultType",
|
|
2708
2726
|
] = DEFAULT,
|
|
2727
|
+
/,
|
|
2709
2728
|
*,
|
|
2710
2729
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
2711
2730
|
_name: Union[str, "DefaultType"] = DEFAULT,
|
|
@@ -2739,6 +2758,7 @@ class TermsSet(Query):
|
|
|
2739
2758
|
self,
|
|
2740
2759
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2741
2760
|
_value: Union["types.TermsSetQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2761
|
+
/,
|
|
2742
2762
|
**kwargs: Any,
|
|
2743
2763
|
):
|
|
2744
2764
|
if _field is not DEFAULT:
|
|
@@ -2764,6 +2784,7 @@ class TextExpansion(Query):
|
|
|
2764
2784
|
_value: Union[
|
|
2765
2785
|
"types.TextExpansionQuery", Dict[str, Any], "DefaultType"
|
|
2766
2786
|
] = DEFAULT,
|
|
2787
|
+
/,
|
|
2767
2788
|
**kwargs: Any,
|
|
2768
2789
|
):
|
|
2769
2790
|
if _field is not DEFAULT:
|
|
@@ -2788,6 +2809,7 @@ class WeightedTokens(Query):
|
|
|
2788
2809
|
_value: Union[
|
|
2789
2810
|
"types.WeightedTokensQuery", Dict[str, Any], "DefaultType"
|
|
2790
2811
|
] = DEFAULT,
|
|
2812
|
+
/,
|
|
2791
2813
|
**kwargs: Any,
|
|
2792
2814
|
):
|
|
2793
2815
|
if _field is not DEFAULT:
|
|
@@ -2809,6 +2831,7 @@ class Wildcard(Query):
|
|
|
2809
2831
|
self,
|
|
2810
2832
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2811
2833
|
_value: Union["types.WildcardQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2834
|
+
/,
|
|
2812
2835
|
**kwargs: Any,
|
|
2813
2836
|
):
|
|
2814
2837
|
if _field is not DEFAULT:
|
|
@@ -233,10 +233,13 @@ AggregateResponseType = Union[
|
|
|
233
233
|
"types.SimpleValueAggregate",
|
|
234
234
|
"types.DerivativeAggregate",
|
|
235
235
|
"types.BucketMetricValueAggregate",
|
|
236
|
+
"types.ChangePointAggregate",
|
|
236
237
|
"types.StatsAggregate",
|
|
237
238
|
"types.StatsBucketAggregate",
|
|
238
239
|
"types.ExtendedStatsAggregate",
|
|
239
240
|
"types.ExtendedStatsBucketAggregate",
|
|
241
|
+
"types.CartesianBoundsAggregate",
|
|
242
|
+
"types.CartesianCentroidAggregate",
|
|
240
243
|
"types.GeoBoundsAggregate",
|
|
241
244
|
"types.GeoCentroidAggregate",
|
|
242
245
|
"types.HistogramAggregate",
|