Skip to content

Auto-generated code for 9.0 #2891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion elasticsearch/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4745,7 +4745,8 @@ async def search(
limit the impact of the search on the cluster in order to limit the number
of concurrent shard requests.
:param min_score: The minimum `_score` for matching documents. Documents with
a lower `_score` are not included in the search results.
a lower `_score` are not included in search results and results collected
by aggregations.
:param pit: Limit the search to a point in time (PIT). If you provide a PIT,
you cannot specify an `<index>` in the request path.
:param post_filter: Use the `post_filter` parameter to filter search results.
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_async/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ async def submit(
limit the impact of the search on the cluster in order to limit the number
of concurrent shard requests
:param min_score: Minimum _score for matching documents. Documents with a lower
_score are not included in the search results.
_score are not included in search results and results collected by aggregations.
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
you cannot specify an <index> in the request path.
:param post_filter:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_async/client/fleet.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ async def search(
:param lenient:
:param max_concurrent_shard_requests:
:param min_score: Minimum _score for matching documents. Documents with a lower
_score are not included in the search results.
_score are not included in search results and results collected by aggregations.
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
you cannot specify an <index> in the request path.
:param post_filter:
Expand Down
5 changes: 4 additions & 1 deletion elasticsearch/_async/client/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,10 @@ async def update_settings(
<p>Update Watcher index settings.
Update settings for the Watcher internal index (<code>.watches</code>).
Only a subset of settings can be modified.
This includes <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
This includes <code>index.auto_expand_replicas</code>, <code>index.number_of_replicas</code>, <code>index.routing.allocation.exclude.*</code>,
<code>index.routing.allocation.include.*</code> and <code>index.routing.allocation.require.*</code>.
Modification of <code>index.routing.allocation.include._tier_preference</code> is an exception and is not allowed as the
Watcher shards must always be in the <code>data_content</code> tier.</p>


`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings>`_
Expand Down
3 changes: 2 additions & 1 deletion elasticsearch/_sync/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4743,7 +4743,8 @@ def search(
limit the impact of the search on the cluster in order to limit the number
of concurrent shard requests.
:param min_score: The minimum `_score` for matching documents. Documents with
a lower `_score` are not included in the search results.
a lower `_score` are not included in search results and results collected
by aggregations.
:param pit: Limit the search to a point in time (PIT). If you provide a PIT,
you cannot specify an `<index>` in the request path.
:param post_filter: Use the `post_filter` parameter to filter search results.
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_sync/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def submit(
limit the impact of the search on the cluster in order to limit the number
of concurrent shard requests
:param min_score: Minimum _score for matching documents. Documents with a lower
_score are not included in the search results.
_score are not included in search results and results collected by aggregations.
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
you cannot specify an <index> in the request path.
:param post_filter:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/_sync/client/fleet.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def search(
:param lenient:
:param max_concurrent_shard_requests:
:param min_score: Minimum _score for matching documents. Documents with a lower
_score are not included in the search results.
_score are not included in search results and results collected by aggregations.
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
you cannot specify an <index> in the request path.
:param post_filter:
Expand Down
5 changes: 4 additions & 1 deletion elasticsearch/_sync/client/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,10 @@ def update_settings(
<p>Update Watcher index settings.
Update settings for the Watcher internal index (<code>.watches</code>).
Only a subset of settings can be modified.
This includes <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
This includes <code>index.auto_expand_replicas</code>, <code>index.number_of_replicas</code>, <code>index.routing.allocation.exclude.*</code>,
<code>index.routing.allocation.include.*</code> and <code>index.routing.allocation.require.*</code>.
Modification of <code>index.routing.allocation.include._tier_preference</code> is an exception and is not allowed as the
Watcher shards must always be in the <code>data_content</code> tier.</p>
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings>`_
Expand Down
30 changes: 24 additions & 6 deletions elasticsearch/dsl/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,24 @@ class DenseVectorIndexOptions(AttrDict[Any]):
`int4_flat` index types.
:arg ef_construction: The number of candidates to track while
assembling the list of nearest neighbors for each new node. Only
applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
Defaults to `100` if omitted.
applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw`
index types. Defaults to `100` if omitted.
:arg m: The number of neighbors each node will be connected to in the
HNSW graph. Only applicable to `hnsw`, `int8_hnsw`, and
`int4_hnsw` index types. Defaults to `16` if omitted.
HNSW graph. Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`,
and `int4_hnsw` index types. Defaults to `16` if omitted.
"""

type: Union[
Literal["flat", "hnsw", "int4_flat", "int4_hnsw", "int8_flat", "int8_hnsw"],
Literal[
"bbq_flat",
"bbq_hnsw",
"flat",
"hnsw",
"int4_flat",
"int4_hnsw",
"int8_flat",
"int8_hnsw",
],
DefaultType,
]
confidence_interval: Union[float, DefaultType]
Expand All @@ -343,7 +352,16 @@ def __init__(
self,
*,
type: Union[
Literal["flat", "hnsw", "int4_flat", "int4_hnsw", "int8_flat", "int8_hnsw"],
Literal[
"bbq_flat",
"bbq_hnsw",
"flat",
"hnsw",
"int4_flat",
"int4_hnsw",
"int8_flat",
"int8_hnsw",
],
DefaultType,
] = DEFAULT,
confidence_interval: Union[float, DefaultType] = DEFAULT,
Expand Down