Skip to content

Commit 25aeedb

Browse files
Merge branch 'main' into use-unbuffered-queue
2 parents 0048693 + 4597dec commit 25aeedb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2869
-646
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
env:
66
PYTHON_VERSION: "{{ matrix.python }}"
77
TEST_SUITE: "platinum"
8-
STACK_VERSION: "9.1.0-SNAPSHOT"
8+
STACK_VERSION: "9.2.0-SNAPSHOT"
99
PYTHON_CONNECTION_CLASS: "{{ matrix.connection }}"
1010
NOX_SESSION: "{{ matrix.nox_session }}"
1111
matrix:

docs/reference/dsl_how_to_guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ first = Post.get(id=42)
927927
first.update(published=True, published_by='me')
928928
```
929929

930-
In case you wish to use a `painless` script to perform the update you can pass in the script string as `script` or the `id` of a [stored script](docs-content://explore-analyze/scripting/modules-scripting-using.md#script-stored-scripts) via `script_id`. All additional keyword arguments to the `update` method will then be passed in as parameters of the script. The document will not be updated in place.
930+
In case you wish to use a `painless` script to perform the update you can pass in the script string as `script` or the `id` of a [stored script](docs-content://explore-analyze/scripting/modules-scripting-using.md) via `script_id`. All additional keyword arguments to the `update` method will then be passed in as parameters of the script. The document will not be updated in place.
931931

932932
```python
933933
# retrieve the document

docs/sphinx/api/indices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Indices
66
:no-index:
77

88
.. autoclass:: IndicesClient
9-
:members:
9+
:members:

docs/sphinx/api/project.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _project:
2+
3+
Project
4+
-------
5+
.. py:module:: elasticsearch.client
6+
:no-index:
7+
8+
.. autoclass:: ProjectClient
9+
:members:

docs/sphinx/api/streams.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _streams:
2+
3+
Streams
4+
-------
5+
.. py:module:: elasticsearch.client
6+
:no-index:
7+
8+
.. autoclass:: StreamsClient
9+
:members:

docs/sphinx/es_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ arguments are required for all calls.
3939
api/ml
4040
api/monitoring
4141
api/nodes
42+
api/project
4243
api/query-rules
4344
api/rollup-indices
4445
api/search-application
@@ -50,6 +51,7 @@ arguments are required for all calls.
5051
api/snapshots
5152
api/snapshottable-features
5253
api/sql
54+
api/streams
5355
api/synonyms
5456
api/tls-ssl
5557
api/tasks

elasticsearch/_async/client/__init__.py

Lines changed: 86 additions & 44 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ async def submit(
287287
preference: t.Optional[str] = None,
288288
pretty: t.Optional[bool] = None,
289289
profile: t.Optional[bool] = None,
290+
project_routing: t.Optional[str] = None,
290291
q: t.Optional[str] = None,
291292
query: t.Optional[t.Mapping[str, t.Any]] = None,
292293
request_cache: t.Optional[bool] = None,
@@ -408,6 +409,10 @@ async def submit(
408409
:param preference: Specify the node or shard the operation should be performed
409410
on (default: random)
410411
:param profile:
412+
:param project_routing: Specifies a subset of projects to target for the search
413+
using project metadata tags in a subset of Lucene query syntax. Allowed Lucene
414+
queries: the _alias tag and a single value (possibly wildcarded). Examples:
415+
_alias:my-project _alias:_origin _alias:*pr* Supported in serverless only.
411416
:param q: Query in the Lucene query string syntax
412417
:param query: Defines the search definition using the Query DSL.
413418
:param request_cache: Specify if request cache should be used for this request
@@ -528,6 +533,8 @@ async def submit(
528533
__query["preference"] = preference
529534
if pretty is not None:
530535
__query["pretty"] = pretty
536+
if project_routing is not None:
537+
__query["project_routing"] = project_routing
531538
if q is not None:
532539
__query["q"] = q
533540
if request_cache is not None:

elasticsearch/_async/client/cat.py

Lines changed: 491 additions & 26 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/connector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def delete(
103103
104104
:param connector_id: The unique identifier of the connector to be deleted
105105
:param delete_sync_jobs: A flag indicating if associated sync jobs should be
106-
also removed. Defaults to false.
106+
also removed.
107107
:param hard: A flag indicating if the connector should be hard deleted.
108108
"""
109109
if connector_id in SKIP_IN_PATH:
@@ -360,7 +360,7 @@ async def list(
360360
361361
:param connector_name: A comma-separated list of connector names to fetch connector
362362
documents for
363-
:param from_: Starting offset (default: 0)
363+
:param from_: Starting offset
364364
:param include_deleted: A flag to indicate if the desired connector should be
365365
fetched, even if it was soft-deleted.
366366
:param index_name: A comma-separated list of connector index names to fetch connector
@@ -955,7 +955,7 @@ async def sync_job_list(
955955
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-list>`_
956956
957957
:param connector_id: A connector id to fetch connector sync jobs for
958-
:param from_: Starting offset (default: 0)
958+
:param from_: Starting offset
959959
:param job_type: A comma-separated list of job types to fetch the sync jobs for
960960
:param size: Specifies a max number of results to get
961961
:param status: A sync job status to fetch connector sync jobs for

0 commit comments

Comments
 (0)