elasticsearch9 9.1.2__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 +67 -65
- elasticsearch9/_async/client/async_search.py +3 -3
- elasticsearch9/_async/client/autoscaling.py +8 -4
- elasticsearch9/_async/client/cat.py +40 -2
- elasticsearch9/_async/client/ccr.py +10 -10
- elasticsearch9/_async/client/cluster.py +34 -33
- elasticsearch9/_async/client/connector.py +42 -41
- 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 +140 -160
- elasticsearch9/_async/client/inference.py +30 -126
- elasticsearch9/_async/client/ingest.py +9 -9
- elasticsearch9/_async/client/license.py +5 -7
- elasticsearch9/_async/client/logstash.py +4 -4
- 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 +15 -15
- 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 +9 -4
- 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 +6 -6
- 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 +26 -26
- elasticsearch9/_async/client/xpack.py +6 -5
- elasticsearch9/_sync/client/__init__.py +69 -65
- elasticsearch9/_sync/client/async_search.py +3 -3
- elasticsearch9/_sync/client/autoscaling.py +8 -4
- elasticsearch9/_sync/client/cat.py +40 -2
- elasticsearch9/_sync/client/ccr.py +10 -10
- elasticsearch9/_sync/client/cluster.py +34 -33
- elasticsearch9/_sync/client/connector.py +42 -41
- 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 +140 -160
- elasticsearch9/_sync/client/inference.py +30 -126
- elasticsearch9/_sync/client/ingest.py +9 -9
- elasticsearch9/_sync/client/license.py +5 -7
- elasticsearch9/_sync/client/logstash.py +4 -4
- 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 +15 -15
- 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 +9 -4
- 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 +6 -6
- 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 +26 -26
- elasticsearch9/_sync/client/xpack.py +6 -5
- elasticsearch9/_version.py +2 -2
- 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 +3 -3
- elasticsearch9/dsl/async_connections.py +1 -2
- elasticsearch9/dsl/connections.py +1 -2
- elasticsearch9/dsl/document_base.py +1 -1
- elasticsearch9/dsl/field.py +1 -9
- elasticsearch9/dsl/query.py +24 -5
- elasticsearch9/dsl/serializer.py +1 -2
- elasticsearch9/dsl/types.py +11 -43
- elasticsearch9/dsl/utils.py +1 -2
- elasticsearch9/esql/esql.py +1 -1
- elasticsearch9/esql/functions.py +2 -2
- 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.2.dist-info → elasticsearch9-9.1.3.dist-info}/METADATA +1 -1
- elasticsearch9-9.1.3.dist-info/RECORD +165 -0
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/WHEEL +1 -1
- elasticsearch9-9.1.2.dist-info/RECORD +0 -165
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/NOTICE +0 -0
|
@@ -39,8 +39,8 @@ class WatcherClient(NamespacedClient):
|
|
|
39
39
|
"""
|
|
40
40
|
.. raw:: html
|
|
41
41
|
|
|
42
|
-
<p>Acknowledge a watch
|
|
43
|
-
Acknowledging a watch enables you to manually throttle the execution of the watch's actions.</p>
|
|
42
|
+
<p>Acknowledge a watch.</p>
|
|
43
|
+
<p>Acknowledging a watch enables you to manually throttle the execution of the watch's actions.</p>
|
|
44
44
|
<p>The acknowledgement state of an action is stored in the <code>status.actions.<id>.ack.state</code> structure.</p>
|
|
45
45
|
<p>IMPORTANT: If the specified watch is currently being executed, this API will return an error
|
|
46
46
|
The reason for this behavior is to prevent overwriting the watch status from a watch execution.</p>
|
|
@@ -101,8 +101,8 @@ class WatcherClient(NamespacedClient):
|
|
|
101
101
|
"""
|
|
102
102
|
.. raw:: html
|
|
103
103
|
|
|
104
|
-
<p>Activate a watch
|
|
105
|
-
A watch can be either active or inactive.</p>
|
|
104
|
+
<p>Activate a watch.</p>
|
|
105
|
+
<p>A watch can be either active or inactive.</p>
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-activate-watch>`_
|
|
@@ -145,8 +145,8 @@ class WatcherClient(NamespacedClient):
|
|
|
145
145
|
"""
|
|
146
146
|
.. raw:: html
|
|
147
147
|
|
|
148
|
-
<p>Deactivate a watch
|
|
149
|
-
A watch can be either active or inactive.</p>
|
|
148
|
+
<p>Deactivate a watch.</p>
|
|
149
|
+
<p>A watch can be either active or inactive.</p>
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-deactivate-watch>`_
|
|
@@ -189,8 +189,8 @@ class WatcherClient(NamespacedClient):
|
|
|
189
189
|
"""
|
|
190
190
|
.. raw:: html
|
|
191
191
|
|
|
192
|
-
<p>Delete a watch
|
|
193
|
-
When the watch is removed, the document representing the watch in the <code>.watches</code> index is gone and it will never be run again.</p>
|
|
192
|
+
<p>Delete a watch.</p>
|
|
193
|
+
<p>When the watch is removed, the document representing the watch in the <code>.watches</code> index is gone and it will never be run again.</p>
|
|
194
194
|
<p>Deleting a watch does not delete any watch execution records related to this watch from the watch history.</p>
|
|
195
195
|
<p>IMPORTANT: Deleting a watch must be done by using only this API.
|
|
196
196
|
Do not delete the watch directly from the <code>.watches</code> index using the Elasticsearch delete document API
|
|
@@ -266,8 +266,8 @@ class WatcherClient(NamespacedClient):
|
|
|
266
266
|
"""
|
|
267
267
|
.. raw:: html
|
|
268
268
|
|
|
269
|
-
<p>Run a watch
|
|
270
|
-
This API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes.</p>
|
|
269
|
+
<p>Run a watch.</p>
|
|
270
|
+
<p>This API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes.</p>
|
|
271
271
|
<p>For testing and debugging purposes, you also have fine-grained control on how the watch runs.
|
|
272
272
|
You can run the watch without running all of its actions or alternatively by simulating them.
|
|
273
273
|
You can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs.</p>
|
|
@@ -362,8 +362,8 @@ class WatcherClient(NamespacedClient):
|
|
|
362
362
|
"""
|
|
363
363
|
.. raw:: html
|
|
364
364
|
|
|
365
|
-
<p>Get Watcher index settings
|
|
366
|
-
Get settings for the Watcher internal index (<code>.watches</code>).
|
|
365
|
+
<p>Get Watcher index settings.</p>
|
|
366
|
+
<p>Get settings for the Watcher internal index (<code>.watches</code>).
|
|
367
367
|
Only a subset of settings are shown, for example <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
|
|
368
368
|
|
|
369
369
|
|
|
@@ -476,8 +476,8 @@ class WatcherClient(NamespacedClient):
|
|
|
476
476
|
"""
|
|
477
477
|
.. raw:: html
|
|
478
478
|
|
|
479
|
-
<p>Create or update a watch
|
|
480
|
-
When a watch is registered, a new document that represents the watch is added to the <code>.watches</code> index and its trigger is immediately registered with the relevant trigger engine.
|
|
479
|
+
<p>Create or update a watch.</p>
|
|
480
|
+
<p>When a watch is registered, a new document that represents the watch is added to the <code>.watches</code> index and its trigger is immediately registered with the relevant trigger engine.
|
|
481
481
|
Typically for the <code>schedule</code> trigger, the scheduler is the trigger engine.</p>
|
|
482
482
|
<p>IMPORTANT: You must use Kibana or this API to create a watch.
|
|
483
483
|
Do not add a watch directly to the <code>.watches</code> index by using the Elasticsearch index API.
|
|
@@ -494,9 +494,9 @@ class WatcherClient(NamespacedClient):
|
|
|
494
494
|
:param active: The initial state of the watch. The default value is `true`, which
|
|
495
495
|
means the watch is active by default.
|
|
496
496
|
:param condition: The condition that defines if the actions should be run.
|
|
497
|
-
:param if_primary_term:
|
|
497
|
+
:param if_primary_term: Only update the watch if the last operation that has
|
|
498
498
|
changed the watch has the specified primary term
|
|
499
|
-
:param if_seq_no:
|
|
499
|
+
:param if_seq_no: Only update the watch if the last operation that has changed
|
|
500
500
|
the watch has the specified sequence number
|
|
501
501
|
:param input: The input that defines the input that loads the data for the watch.
|
|
502
502
|
:param metadata: Metadata JSON that will be copied into the history entries.
|
|
@@ -591,8 +591,8 @@ class WatcherClient(NamespacedClient):
|
|
|
591
591
|
"""
|
|
592
592
|
.. raw:: html
|
|
593
593
|
|
|
594
|
-
<p>Query watches
|
|
595
|
-
Get all registered watches in a paginated manner and optionally filter watches by a query.</p>
|
|
594
|
+
<p>Query watches.</p>
|
|
595
|
+
<p>Get all registered watches in a paginated manner and optionally filter watches by a query.</p>
|
|
596
596
|
<p>Note that only the <code>_id</code> and <code>metadata.*</code> fields are queryable or sortable.</p>
|
|
597
597
|
|
|
598
598
|
|
|
@@ -667,8 +667,8 @@ class WatcherClient(NamespacedClient):
|
|
|
667
667
|
"""
|
|
668
668
|
.. raw:: html
|
|
669
669
|
|
|
670
|
-
<p>Start the watch service
|
|
671
|
-
Start the Watcher service if it is not already running.</p>
|
|
670
|
+
<p>Start the watch service.</p>
|
|
671
|
+
<p>Start the Watcher service if it is not already running.</p>
|
|
672
672
|
|
|
673
673
|
|
|
674
674
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-start>`_
|
|
@@ -732,8 +732,8 @@ class WatcherClient(NamespacedClient):
|
|
|
732
732
|
"""
|
|
733
733
|
.. raw:: html
|
|
734
734
|
|
|
735
|
-
<p>Get Watcher statistics
|
|
736
|
-
This API always returns basic metrics.
|
|
735
|
+
<p>Get Watcher statistics.</p>
|
|
736
|
+
<p>This API always returns basic metrics.
|
|
737
737
|
You retrieve more metrics by using the metric parameter.</p>
|
|
738
738
|
|
|
739
739
|
|
|
@@ -784,8 +784,8 @@ class WatcherClient(NamespacedClient):
|
|
|
784
784
|
"""
|
|
785
785
|
.. raw:: html
|
|
786
786
|
|
|
787
|
-
<p>Stop the watch service
|
|
788
|
-
Stop the Watcher service if it is running.</p>
|
|
787
|
+
<p>Stop the watch service.</p>
|
|
788
|
+
<p>Stop the Watcher service if it is running.</p>
|
|
789
789
|
|
|
790
790
|
|
|
791
791
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stop>`_
|
|
@@ -840,8 +840,8 @@ class WatcherClient(NamespacedClient):
|
|
|
840
840
|
"""
|
|
841
841
|
.. raw:: html
|
|
842
842
|
|
|
843
|
-
<p>Update Watcher index settings
|
|
844
|
-
Update settings for the Watcher internal index (<code>.watches</code>).
|
|
843
|
+
<p>Update Watcher index settings.</p>
|
|
844
|
+
<p>Update settings for the Watcher internal index (<code>.watches</code>).
|
|
845
845
|
Only a subset of settings can be modified.
|
|
846
846
|
This includes <code>index.auto_expand_replicas</code>, <code>index.number_of_replicas</code>, <code>index.routing.allocation.exclude.*</code>,
|
|
847
847
|
<code>index.routing.allocation.include.*</code> and <code>index.routing.allocation.require.*</code>.
|
|
@@ -45,8 +45,8 @@ class XPackClient(NamespacedClient):
|
|
|
45
45
|
"""
|
|
46
46
|
.. raw:: html
|
|
47
47
|
|
|
48
|
-
<p>Get information
|
|
49
|
-
The information provided by the API includes:</p>
|
|
48
|
+
<p>Get information.</p>
|
|
49
|
+
<p>The information provided by the API includes:</p>
|
|
50
50
|
<ul>
|
|
51
51
|
<li>Build information including the build number and timestamp.</li>
|
|
52
52
|
<li>License information about the currently installed license.</li>
|
|
@@ -56,7 +56,8 @@ class XPackClient(NamespacedClient):
|
|
|
56
56
|
|
|
57
57
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-info>`_
|
|
58
58
|
|
|
59
|
-
:param accept_enterprise: If this
|
|
59
|
+
:param accept_enterprise: If used, this otherwise ignored parameter must be set
|
|
60
|
+
to true
|
|
60
61
|
:param categories: A comma-separated list of the information categories to include
|
|
61
62
|
in the response. For example, `build,license,features`.
|
|
62
63
|
"""
|
|
@@ -98,8 +99,8 @@ class XPackClient(NamespacedClient):
|
|
|
98
99
|
"""
|
|
99
100
|
.. raw:: html
|
|
100
101
|
|
|
101
|
-
<p>Get usage information
|
|
102
|
-
Get information about the features that are currently enabled and available under the current license.
|
|
102
|
+
<p>Get usage information.</p>
|
|
103
|
+
<p>Get information about the features that are currently enabled and available under the current license.
|
|
103
104
|
The API also provides some usage statistics.</p>
|
|
104
105
|
|
|
105
106
|
|
elasticsearch9/_version.py
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
__versionstr__ = "9.1.
|
|
19
|
-
__es_specification_commit__ = "
|
|
18
|
+
__versionstr__ = "9.1.3"
|
|
19
|
+
__es_specification_commit__ = "69144c05ec6727c4ee39aec454f7ad6a57d240fc"
|
|
@@ -31,9 +31,8 @@ from typing import (
|
|
|
31
31
|
|
|
32
32
|
from typing_extensions import Self, dataclass_transform
|
|
33
33
|
|
|
34
|
-
from
|
|
35
|
-
from
|
|
36
|
-
|
|
34
|
+
from ...exceptions import NotFoundError, RequestError
|
|
35
|
+
from ...helpers import async_bulk
|
|
37
36
|
from .._async.index import AsyncIndex
|
|
38
37
|
from ..async_connections import get_connection
|
|
39
38
|
from ..document_base import DocumentBase, DocumentMeta, mapped_field
|
|
@@ -42,8 +41,8 @@ from ..utils import DOC_META_FIELDS, META_FIELDS, AsyncUsingType, merge
|
|
|
42
41
|
from .search import AsyncSearch
|
|
43
42
|
|
|
44
43
|
if TYPE_CHECKING:
|
|
45
|
-
from
|
|
46
|
-
from
|
|
44
|
+
from ... import AsyncElasticsearch
|
|
45
|
+
from ...esql.esql import ESQLBase
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
class AsyncIndexMeta(DocumentMeta):
|
|
@@ -29,9 +29,8 @@ from typing import (
|
|
|
29
29
|
|
|
30
30
|
from typing_extensions import Self
|
|
31
31
|
|
|
32
|
-
from
|
|
33
|
-
from
|
|
34
|
-
|
|
32
|
+
from ...exceptions import ApiError
|
|
33
|
+
from ...helpers import async_scan
|
|
35
34
|
from ..async_connections import get_connection
|
|
36
35
|
from ..response import Response
|
|
37
36
|
from ..search_base import MultiSearchBase, SearchBase
|
|
@@ -31,9 +31,8 @@ from typing import (
|
|
|
31
31
|
|
|
32
32
|
from typing_extensions import Self, dataclass_transform
|
|
33
33
|
|
|
34
|
-
from
|
|
35
|
-
from
|
|
36
|
-
|
|
34
|
+
from ...exceptions import NotFoundError, RequestError
|
|
35
|
+
from ...helpers import bulk
|
|
37
36
|
from .._sync.index import Index
|
|
38
37
|
from ..connections import get_connection
|
|
39
38
|
from ..document_base import DocumentBase, DocumentMeta, mapped_field
|
|
@@ -42,8 +41,8 @@ from ..utils import DOC_META_FIELDS, META_FIELDS, UsingType, merge
|
|
|
42
41
|
from .search import Search
|
|
43
42
|
|
|
44
43
|
if TYPE_CHECKING:
|
|
45
|
-
from
|
|
46
|
-
from
|
|
44
|
+
from ... import Elasticsearch
|
|
45
|
+
from ...esql.esql import ESQLBase
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
class IndexMeta(DocumentMeta):
|
|
@@ -28,9 +28,8 @@ from typing import (
|
|
|
28
28
|
|
|
29
29
|
from typing_extensions import Self
|
|
30
30
|
|
|
31
|
-
from
|
|
32
|
-
from
|
|
33
|
-
|
|
31
|
+
from ...exceptions import ApiError
|
|
32
|
+
from ...helpers import scan
|
|
34
33
|
from ..connections import get_connection
|
|
35
34
|
from ..response import Response
|
|
36
35
|
from ..search_base import MultiSearchBase, SearchBase
|
elasticsearch9/dsl/aggs.py
CHANGED
|
@@ -1495,7 +1495,7 @@ class GeohashGrid(Bucket[_R]):
|
|
|
1495
1495
|
"DefaultType",
|
|
1496
1496
|
] = DEFAULT,
|
|
1497
1497
|
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1498
|
-
precision: Union[
|
|
1498
|
+
precision: Union[int, str, "DefaultType"] = DEFAULT,
|
|
1499
1499
|
shard_size: Union[int, "DefaultType"] = DEFAULT,
|
|
1500
1500
|
size: Union[int, "DefaultType"] = DEFAULT,
|
|
1501
1501
|
**kwargs: Any,
|
|
@@ -1579,7 +1579,7 @@ class GeotileGrid(Bucket[_R]):
|
|
|
1579
1579
|
self,
|
|
1580
1580
|
*,
|
|
1581
1581
|
field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1582
|
-
precision: Union[
|
|
1582
|
+
precision: Union[int, "DefaultType"] = DEFAULT,
|
|
1583
1583
|
shard_size: Union[int, "DefaultType"] = DEFAULT,
|
|
1584
1584
|
size: Union[int, "DefaultType"] = DEFAULT,
|
|
1585
1585
|
bounds: Union[
|
|
@@ -2680,7 +2680,7 @@ class Percentiles(Agg[_R]):
|
|
|
2680
2680
|
self,
|
|
2681
2681
|
*,
|
|
2682
2682
|
keyed: Union[bool, "DefaultType"] = DEFAULT,
|
|
2683
|
-
percents: Union[Sequence[float], "DefaultType"] = DEFAULT,
|
|
2683
|
+
percents: Union[float, Sequence[float], "DefaultType"] = DEFAULT,
|
|
2684
2684
|
hdr: Union["types.HdrMethod", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2685
2685
|
tdigest: Union["types.TDigest", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2686
2686
|
format: Union[str, "DefaultType"] = DEFAULT,
|
elasticsearch9/dsl/field.py
CHANGED
|
@@ -3866,9 +3866,6 @@ class SemanticText(Field):
|
|
|
3866
3866
|
by using the Update mapping API. Use the Create inference API to
|
|
3867
3867
|
create the endpoint. If not specified, the inference endpoint
|
|
3868
3868
|
defined by inference_id will be used at both index and query time.
|
|
3869
|
-
:arg index_options: Settings for index_options that override any
|
|
3870
|
-
defaults used by semantic_text, for example specific quantization
|
|
3871
|
-
settings.
|
|
3872
3869
|
:arg chunking_settings: Settings for chunking text into smaller
|
|
3873
3870
|
passages. If specified, these will override the chunking settings
|
|
3874
3871
|
sent in the inference endpoint associated with inference_id. If
|
|
@@ -3888,11 +3885,8 @@ class SemanticText(Field):
|
|
|
3888
3885
|
meta: Union[Mapping[str, str], "DefaultType"] = DEFAULT,
|
|
3889
3886
|
inference_id: Union[str, "DefaultType"] = DEFAULT,
|
|
3890
3887
|
search_inference_id: Union[str, "DefaultType"] = DEFAULT,
|
|
3891
|
-
index_options: Union[
|
|
3892
|
-
"types.SemanticTextIndexOptions", Dict[str, Any], "DefaultType"
|
|
3893
|
-
] = DEFAULT,
|
|
3894
3888
|
chunking_settings: Union[
|
|
3895
|
-
"types.ChunkingSettings",
|
|
3889
|
+
"types.ChunkingSettings", Dict[str, Any], "DefaultType"
|
|
3896
3890
|
] = DEFAULT,
|
|
3897
3891
|
fields: Union[Mapping[str, Field], "DefaultType"] = DEFAULT,
|
|
3898
3892
|
**kwargs: Any,
|
|
@@ -3903,8 +3897,6 @@ class SemanticText(Field):
|
|
|
3903
3897
|
kwargs["inference_id"] = inference_id
|
|
3904
3898
|
if search_inference_id is not DEFAULT:
|
|
3905
3899
|
kwargs["search_inference_id"] = search_inference_id
|
|
3906
|
-
if index_options is not DEFAULT:
|
|
3907
|
-
kwargs["index_options"] = index_options
|
|
3908
3900
|
if chunking_settings is not DEFAULT:
|
|
3909
3901
|
kwargs["chunking_settings"] = chunking_settings
|
|
3910
3902
|
if fields is not DEFAULT:
|
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:
|
|
@@ -1079,8 +1087,6 @@ class Knn(Query):
|
|
|
1079
1087
|
a query_vector_builder or query_vector, but not both.
|
|
1080
1088
|
:arg num_candidates: The number of nearest neighbor candidates to
|
|
1081
1089
|
consider per shard
|
|
1082
|
-
:arg visit_percentage: The percentage of vectors to explore per shard
|
|
1083
|
-
while doing knn search with bbq_disk
|
|
1084
1090
|
:arg k: The final number of nearest neighbors to return as top hits
|
|
1085
1091
|
:arg filter: Filters for the kNN search query
|
|
1086
1092
|
:arg similarity: The minimum similarity for a vector to be considered
|
|
@@ -1109,7 +1115,6 @@ class Knn(Query):
|
|
|
1109
1115
|
"types.QueryVectorBuilder", Dict[str, Any], "DefaultType"
|
|
1110
1116
|
] = DEFAULT,
|
|
1111
1117
|
num_candidates: Union[int, "DefaultType"] = DEFAULT,
|
|
1112
|
-
visit_percentage: Union[float, "DefaultType"] = DEFAULT,
|
|
1113
1118
|
k: Union[int, "DefaultType"] = DEFAULT,
|
|
1114
1119
|
filter: Union[Query, Sequence[Query], "DefaultType"] = DEFAULT,
|
|
1115
1120
|
similarity: Union[float, "DefaultType"] = DEFAULT,
|
|
@@ -1125,7 +1130,6 @@ class Knn(Query):
|
|
|
1125
1130
|
query_vector=query_vector,
|
|
1126
1131
|
query_vector_builder=query_vector_builder,
|
|
1127
1132
|
num_candidates=num_candidates,
|
|
1128
|
-
visit_percentage=visit_percentage,
|
|
1129
1133
|
k=k,
|
|
1130
1134
|
filter=filter,
|
|
1131
1135
|
similarity=similarity,
|
|
@@ -1151,6 +1155,7 @@ class Match(Query):
|
|
|
1151
1155
|
self,
|
|
1152
1156
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1153
1157
|
_value: Union["types.MatchQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1158
|
+
/,
|
|
1154
1159
|
**kwargs: Any,
|
|
1155
1160
|
):
|
|
1156
1161
|
if _field is not DEFAULT:
|
|
@@ -1216,6 +1221,7 @@ class MatchBoolPrefix(Query):
|
|
|
1216
1221
|
_value: Union[
|
|
1217
1222
|
"types.MatchBoolPrefixQuery", Dict[str, Any], "DefaultType"
|
|
1218
1223
|
] = DEFAULT,
|
|
1224
|
+
/,
|
|
1219
1225
|
**kwargs: Any,
|
|
1220
1226
|
):
|
|
1221
1227
|
if _field is not DEFAULT:
|
|
@@ -1276,6 +1282,7 @@ class MatchPhrase(Query):
|
|
|
1276
1282
|
_value: Union[
|
|
1277
1283
|
"types.MatchPhraseQuery", Dict[str, Any], "DefaultType"
|
|
1278
1284
|
] = DEFAULT,
|
|
1285
|
+
/,
|
|
1279
1286
|
**kwargs: Any,
|
|
1280
1287
|
):
|
|
1281
1288
|
if _field is not DEFAULT:
|
|
@@ -1301,6 +1308,7 @@ class MatchPhrasePrefix(Query):
|
|
|
1301
1308
|
_value: Union[
|
|
1302
1309
|
"types.MatchPhrasePrefixQuery", Dict[str, Any], "DefaultType"
|
|
1303
1310
|
] = DEFAULT,
|
|
1311
|
+
/,
|
|
1304
1312
|
**kwargs: Any,
|
|
1305
1313
|
):
|
|
1306
1314
|
if _field is not DEFAULT:
|
|
@@ -1437,7 +1445,7 @@ class MoreLikeThis(Query):
|
|
|
1437
1445
|
] = DEFAULT,
|
|
1438
1446
|
version: Union[int, "DefaultType"] = DEFAULT,
|
|
1439
1447
|
version_type: Union[
|
|
1440
|
-
Literal["internal", "external", "external_gte"], "DefaultType"
|
|
1448
|
+
Literal["internal", "external", "external_gte", "force"], "DefaultType"
|
|
1441
1449
|
] = DEFAULT,
|
|
1442
1450
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
1443
1451
|
_name: Union[str, "DefaultType"] = DEFAULT,
|
|
@@ -1784,6 +1792,7 @@ class Prefix(Query):
|
|
|
1784
1792
|
self,
|
|
1785
1793
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1786
1794
|
_value: Union["types.PrefixQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1795
|
+
/,
|
|
1787
1796
|
**kwargs: Any,
|
|
1788
1797
|
):
|
|
1789
1798
|
if _field is not DEFAULT:
|
|
@@ -1950,6 +1959,7 @@ class Range(Query):
|
|
|
1950
1959
|
self,
|
|
1951
1960
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
1952
1961
|
_value: Union["wrappers.Range[Any]", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
1962
|
+
/,
|
|
1953
1963
|
**kwargs: Any,
|
|
1954
1964
|
):
|
|
1955
1965
|
if _field is not DEFAULT:
|
|
@@ -2028,6 +2038,7 @@ class Regexp(Query):
|
|
|
2028
2038
|
self,
|
|
2029
2039
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2030
2040
|
_value: Union["types.RegexpQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2041
|
+
/,
|
|
2031
2042
|
**kwargs: Any,
|
|
2032
2043
|
):
|
|
2033
2044
|
if _field is not DEFAULT:
|
|
@@ -2198,6 +2209,7 @@ class Shape(Query):
|
|
|
2198
2209
|
self,
|
|
2199
2210
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2200
2211
|
_value: Union["types.ShapeFieldQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2212
|
+
/,
|
|
2201
2213
|
*,
|
|
2202
2214
|
ignore_unmapped: Union[bool, "DefaultType"] = DEFAULT,
|
|
2203
2215
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
@@ -2556,6 +2568,7 @@ class SpanTerm(Query):
|
|
|
2556
2568
|
self,
|
|
2557
2569
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2558
2570
|
_value: Union["types.SpanTermQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2571
|
+
/,
|
|
2559
2572
|
**kwargs: Any,
|
|
2560
2573
|
):
|
|
2561
2574
|
if _field is not DEFAULT:
|
|
@@ -2676,6 +2689,7 @@ class Term(Query):
|
|
|
2676
2689
|
self,
|
|
2677
2690
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2678
2691
|
_value: Union["types.TermQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2692
|
+
/,
|
|
2679
2693
|
**kwargs: Any,
|
|
2680
2694
|
):
|
|
2681
2695
|
if _field is not DEFAULT:
|
|
@@ -2710,6 +2724,7 @@ class Terms(Query):
|
|
|
2710
2724
|
Dict[str, Any],
|
|
2711
2725
|
"DefaultType",
|
|
2712
2726
|
] = DEFAULT,
|
|
2727
|
+
/,
|
|
2713
2728
|
*,
|
|
2714
2729
|
boost: Union[float, "DefaultType"] = DEFAULT,
|
|
2715
2730
|
_name: Union[str, "DefaultType"] = DEFAULT,
|
|
@@ -2743,6 +2758,7 @@ class TermsSet(Query):
|
|
|
2743
2758
|
self,
|
|
2744
2759
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2745
2760
|
_value: Union["types.TermsSetQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2761
|
+
/,
|
|
2746
2762
|
**kwargs: Any,
|
|
2747
2763
|
):
|
|
2748
2764
|
if _field is not DEFAULT:
|
|
@@ -2768,6 +2784,7 @@ class TextExpansion(Query):
|
|
|
2768
2784
|
_value: Union[
|
|
2769
2785
|
"types.TextExpansionQuery", Dict[str, Any], "DefaultType"
|
|
2770
2786
|
] = DEFAULT,
|
|
2787
|
+
/,
|
|
2771
2788
|
**kwargs: Any,
|
|
2772
2789
|
):
|
|
2773
2790
|
if _field is not DEFAULT:
|
|
@@ -2792,6 +2809,7 @@ class WeightedTokens(Query):
|
|
|
2792
2809
|
_value: Union[
|
|
2793
2810
|
"types.WeightedTokensQuery", Dict[str, Any], "DefaultType"
|
|
2794
2811
|
] = DEFAULT,
|
|
2812
|
+
/,
|
|
2795
2813
|
**kwargs: Any,
|
|
2796
2814
|
):
|
|
2797
2815
|
if _field is not DEFAULT:
|
|
@@ -2813,6 +2831,7 @@ class Wildcard(Query):
|
|
|
2813
2831
|
self,
|
|
2814
2832
|
_field: Union[str, "InstrumentedField", "DefaultType"] = DEFAULT,
|
|
2815
2833
|
_value: Union["types.WildcardQuery", Dict[str, Any], "DefaultType"] = DEFAULT,
|
|
2834
|
+
/,
|
|
2816
2835
|
**kwargs: Any,
|
|
2817
2836
|
):
|
|
2818
2837
|
if _field is not DEFAULT:
|