Skip to content

Commit 3b22767

Browse files
Auto-generated API code (#2891)
1 parent 123a6fa commit 3b22767

File tree

9 files changed

+40
-14
lines changed

9 files changed

+40
-14
lines changed

Diff for: elasticsearch/_async/client/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4745,7 +4745,8 @@ async def search(
47454745
limit the impact of the search on the cluster in order to limit the number
47464746
of concurrent shard requests.
47474747
:param min_score: The minimum `_score` for matching documents. Documents with
4748-
a lower `_score` are not included in the search results.
4748+
a lower `_score` are not included in search results and results collected
4749+
by aggregations.
47494750
:param pit: Limit the search to a point in time (PIT). If you provide a PIT,
47504751
you cannot specify an `<index>` in the request path.
47514752
:param post_filter: Use the `post_filter` parameter to filter search results.

Diff for: elasticsearch/_async/client/async_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ async def submit(
401401
limit the impact of the search on the cluster in order to limit the number
402402
of concurrent shard requests
403403
:param min_score: Minimum _score for matching documents. Documents with a lower
404-
_score are not included in the search results.
404+
_score are not included in search results and results collected by aggregations.
405405
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
406406
you cannot specify an <index> in the request path.
407407
:param post_filter:

Diff for: elasticsearch/_async/client/fleet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ async def search(
430430
:param lenient:
431431
:param max_concurrent_shard_requests:
432432
:param min_score: Minimum _score for matching documents. Documents with a lower
433-
_score are not included in the search results.
433+
_score are not included in search results and results collected by aggregations.
434434
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
435435
you cannot specify an <index> in the request path.
436436
:param post_filter:

Diff for: elasticsearch/_async/client/watcher.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,10 @@ async def update_settings(
845845
<p>Update Watcher index settings.
846846
Update settings for the Watcher internal index (<code>.watches</code>).
847847
Only a subset of settings can be modified.
848-
This includes <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
848+
This includes <code>index.auto_expand_replicas</code>, <code>index.number_of_replicas</code>, <code>index.routing.allocation.exclude.*</code>,
849+
<code>index.routing.allocation.include.*</code> and <code>index.routing.allocation.require.*</code>.
850+
Modification of <code>index.routing.allocation.include._tier_preference</code> is an exception and is not allowed as the
851+
Watcher shards must always be in the <code>data_content</code> tier.</p>
849852
850853
851854
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings>`_

Diff for: elasticsearch/_sync/client/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4743,7 +4743,8 @@ def search(
47434743
limit the impact of the search on the cluster in order to limit the number
47444744
of concurrent shard requests.
47454745
:param min_score: The minimum `_score` for matching documents. Documents with
4746-
a lower `_score` are not included in the search results.
4746+
a lower `_score` are not included in search results and results collected
4747+
by aggregations.
47474748
:param pit: Limit the search to a point in time (PIT). If you provide a PIT,
47484749
you cannot specify an `<index>` in the request path.
47494750
:param post_filter: Use the `post_filter` parameter to filter search results.

Diff for: elasticsearch/_sync/client/async_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def submit(
401401
limit the impact of the search on the cluster in order to limit the number
402402
of concurrent shard requests
403403
:param min_score: Minimum _score for matching documents. Documents with a lower
404-
_score are not included in the search results.
404+
_score are not included in search results and results collected by aggregations.
405405
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
406406
you cannot specify an <index> in the request path.
407407
:param post_filter:

Diff for: elasticsearch/_sync/client/fleet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def search(
430430
:param lenient:
431431
:param max_concurrent_shard_requests:
432432
:param min_score: Minimum _score for matching documents. Documents with a lower
433-
_score are not included in the search results.
433+
_score are not included in search results and results collected by aggregations.
434434
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
435435
you cannot specify an <index> in the request path.
436436
:param post_filter:

Diff for: elasticsearch/_sync/client/watcher.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,10 @@ def update_settings(
845845
<p>Update Watcher index settings.
846846
Update settings for the Watcher internal index (<code>.watches</code>).
847847
Only a subset of settings can be modified.
848-
This includes <code>index.auto_expand_replicas</code> and <code>index.number_of_replicas</code>.</p>
848+
This includes <code>index.auto_expand_replicas</code>, <code>index.number_of_replicas</code>, <code>index.routing.allocation.exclude.*</code>,
849+
<code>index.routing.allocation.include.*</code> and <code>index.routing.allocation.require.*</code>.
850+
Modification of <code>index.routing.allocation.include._tier_preference</code> is an exception and is not allowed as the
851+
Watcher shards must always be in the <code>data_content</code> tier.</p>
849852
850853
851854
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings>`_

Diff for: elasticsearch/dsl/types.py

+24-6
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,24 @@ class DenseVectorIndexOptions(AttrDict[Any]):
324324
`int4_flat` index types.
325325
:arg ef_construction: The number of candidates to track while
326326
assembling the list of nearest neighbors for each new node. Only
327-
applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
328-
Defaults to `100` if omitted.
327+
applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw`
328+
index types. Defaults to `100` if omitted.
329329
:arg m: The number of neighbors each node will be connected to in the
330-
HNSW graph. Only applicable to `hnsw`, `int8_hnsw`, and
331-
`int4_hnsw` index types. Defaults to `16` if omitted.
330+
HNSW graph. Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`,
331+
and `int4_hnsw` index types. Defaults to `16` if omitted.
332332
"""
333333

334334
type: Union[
335-
Literal["flat", "hnsw", "int4_flat", "int4_hnsw", "int8_flat", "int8_hnsw"],
335+
Literal[
336+
"bbq_flat",
337+
"bbq_hnsw",
338+
"flat",
339+
"hnsw",
340+
"int4_flat",
341+
"int4_hnsw",
342+
"int8_flat",
343+
"int8_hnsw",
344+
],
336345
DefaultType,
337346
]
338347
confidence_interval: Union[float, DefaultType]
@@ -343,7 +352,16 @@ def __init__(
343352
self,
344353
*,
345354
type: Union[
346-
Literal["flat", "hnsw", "int4_flat", "int4_hnsw", "int8_flat", "int8_hnsw"],
355+
Literal[
356+
"bbq_flat",
357+
"bbq_hnsw",
358+
"flat",
359+
"hnsw",
360+
"int4_flat",
361+
"int4_hnsw",
362+
"int8_flat",
363+
"int8_hnsw",
364+
],
347365
DefaultType,
348366
] = DEFAULT,
349367
confidence_interval: Union[float, DefaultType] = DEFAULT,

0 commit comments

Comments
 (0)