@@ -42,7 +42,7 @@ async def delete(
4242 the authenticated user that submitted the original search request; users that
4343 have the `cancel_task` cluster privilege.
4444
45- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16 /async-search.html>`_
45+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17 /async-search.html>`_
4646
4747 :param id: A unique identifier for the async search.
4848 """
@@ -90,7 +90,7 @@ async def get(
9090 the results of a specific async search is restricted to the user or API key that
9191 submitted it.
9292
93- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16 /async-search.html>`_
93+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17 /async-search.html>`_
9494
9595 :param id: A unique identifier for the async search.
9696 :param keep_alive: Specifies how long the async search should be available in
@@ -145,6 +145,7 @@ async def status(
145145 error_trace : t .Optional [bool ] = None ,
146146 filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
147147 human : t .Optional [bool ] = None ,
148+ keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
148149 pretty : t .Optional [bool ] = None ,
149150 ) -> ObjectApiResponse [t .Any ]:
150151 """
@@ -153,9 +154,12 @@ async def status(
153154 security features are enabled, use of this API is restricted to the `monitoring_user`
154155 role.
155156
156- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16 /async-search.html>`_
157+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17 /async-search.html>`_
157158
158159 :param id: A unique identifier for the async search.
160+ :param keep_alive: Specifies how long the async search needs to be available.
161+ Ongoing async searches and any saved search results are deleted after this
162+ period.
159163 """
160164 if id in SKIP_IN_PATH :
161165 raise ValueError ("Empty value passed for parameter 'id'" )
@@ -168,6 +172,8 @@ async def status(
168172 __query ["filter_path" ] = filter_path
169173 if human is not None :
170174 __query ["human" ] = human
175+ if keep_alive is not None :
176+ __query ["keep_alive" ] = keep_alive
171177 if pretty is not None :
172178 __query ["pretty" ] = pretty
173179 __headers = {"accept" : "application/json" }
@@ -258,7 +264,6 @@ async def submit(
258264 ignore_throttled : t .Optional [bool ] = None ,
259265 ignore_unavailable : t .Optional [bool ] = None ,
260266 indices_boost : t .Optional [t .Sequence [t .Mapping [str , float ]]] = None ,
261- keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
262267 keep_on_completion : t .Optional [bool ] = None ,
263268 knn : t .Optional [
264269 t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
@@ -269,7 +274,6 @@ async def submit(
269274 min_score : t .Optional [float ] = None ,
270275 pit : t .Optional [t .Mapping [str , t .Any ]] = None ,
271276 post_filter : t .Optional [t .Mapping [str , t .Any ]] = None ,
272- pre_filter_shard_size : t .Optional [int ] = None ,
273277 preference : t .Optional [str ] = None ,
274278 pretty : t .Optional [bool ] = None ,
275279 profile : t .Optional [bool ] = None ,
@@ -283,7 +287,6 @@ async def submit(
283287 routing : t .Optional [str ] = None ,
284288 runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
285289 script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
286- scroll : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
287290 search_after : t .Optional [
288291 t .Sequence [t .Union [None , bool , float , int , str , t .Any ]]
289292 ] = None ,
@@ -333,7 +336,7 @@ async def submit(
333336 can be set by changing the `search.max_async_search_response_size` cluster level
334337 setting.
335338
336- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16 /async-search.html>`_
339+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17 /async-search.html>`_
337340
338341 :param index: A comma-separated list of index names to search; use `_all` or
339342 empty string to perform the operation on all indices
@@ -376,9 +379,6 @@ async def submit(
376379 :param ignore_unavailable: Whether specified concrete indices should be ignored
377380 when unavailable (missing or closed)
378381 :param indices_boost: Boosts the _score of documents from specified indices.
379- :param keep_alive: Specifies how long the async search needs to be available.
380- Ongoing async searches and any saved search results are deleted after this
381- period.
382382 :param keep_on_completion: If `true`, results are stored for later retrieval
383383 when the search completes within the `wait_for_completion_timeout`.
384384 :param knn: Defines the approximate kNN search to run.
@@ -394,10 +394,6 @@ async def submit(
394394 :param pit: Limits the search to a point in time (PIT). If you provide a PIT,
395395 you cannot specify an <index> in the request path.
396396 :param post_filter:
397- :param pre_filter_shard_size: The default value cannot be changed, which enforces
398- the execution of a pre-filter roundtrip to retrieve statistics from each
399- shard so that the ones that surely don’t hold any document matching the query
400- get skipped.
401397 :param preference: Specify the node or shard the operation should be performed
402398 on (default: random)
403399 :param profile:
@@ -406,13 +402,13 @@ async def submit(
406402 :param request_cache: Specify if request cache should be used for this request
407403 or not, defaults to true
408404 :param rescore:
409- :param rest_total_hits_as_int:
405+ :param rest_total_hits_as_int: Indicates whether hits.total should be rendered
406+ as an integer or an object in the rest search response
410407 :param routing: A comma-separated list of specific routing values
411408 :param runtime_mappings: Defines one or more runtime fields in the search request.
412409 These fields take precedence over mapped fields with the same name.
413410 :param script_fields: Retrieve a script evaluation (based on different fields)
414411 for each hit.
415- :param scroll:
416412 :param search_after:
417413 :param search_type: Search operation type
418414 :param seq_no_primary_term: If true, returns sequence number and primary term
@@ -509,8 +505,6 @@ async def submit(
509505 __query ["ignore_throttled" ] = ignore_throttled
510506 if ignore_unavailable is not None :
511507 __query ["ignore_unavailable" ] = ignore_unavailable
512- if keep_alive is not None :
513- __query ["keep_alive" ] = keep_alive
514508 if keep_on_completion is not None :
515509 __query ["keep_on_completion" ] = keep_on_completion
516510 if lenient is not None :
@@ -519,8 +513,6 @@ async def submit(
519513 __query ["max_concurrent_shard_requests" ] = max_concurrent_shard_requests
520514 if min_compatible_shard_node is not None :
521515 __query ["min_compatible_shard_node" ] = min_compatible_shard_node
522- if pre_filter_shard_size is not None :
523- __query ["pre_filter_shard_size" ] = pre_filter_shard_size
524516 if preference is not None :
525517 __query ["preference" ] = preference
526518 if pretty is not None :
@@ -533,8 +525,6 @@ async def submit(
533525 __query ["rest_total_hits_as_int" ] = rest_total_hits_as_int
534526 if routing is not None :
535527 __query ["routing" ] = routing
536- if scroll is not None :
537- __query ["scroll" ] = scroll
538528 if search_type is not None :
539529 __query ["search_type" ] = search_type
540530 if source_excludes is not None :
0 commit comments