Skip to content

Commit e429eb9

Browse files
committed
[API] async_search.submit, search: Add :project_routing [String] param
Specifies a subset of projects to target for a search using project metadata tags in a subset Lucene syntax.
1 parent 935055f commit e429eb9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ module Actions
5151
# @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
5252
# @option arguments [Integer] :max_concurrent_shard_requests The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
5353
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
54+
# @option arguments [String] :project_routing Specifies a subset of projects to target for a search using project metadata
55+
# tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag
56+
# and a single value (possible wildcarded). Examples:
57+
# _alias:my-project
58+
# _alias:_origin
59+
# _alias:*pr*
60+
# Supported in serverless only.
5461
# @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to true Server default: true.
5562
# @option arguments [String] :routing A comma-separated list of specific routing values
5663
# @option arguments [String] :search_type Search operation type

elasticsearch-api/lib/elasticsearch/api/actions/search.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ module Actions
8484
# - The request targets more than 128 shards.
8585
# - The request targets one or more read-only index.
8686
# - The primary sort of the query targets an indexed field.
87+
# @option arguments [String] :project_routing Specifies a subset of projects to target for a search using project metadata
88+
# tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag
89+
# and a single value (possible wildcarded). Examples:
90+
# _alias:my-project
91+
# _alias:_origin
92+
# _alias:*pr*
93+
# Supported in serverless only.
8794
# @option arguments [Boolean] :request_cache If `true`, the caching of search results is enabled for requests where `size` is `0`.
8895
# It defaults to index level settings.
8996
# @option arguments [String] :routing A custom value that is used to route operations to a specific shard.

0 commit comments

Comments
 (0)