-
Notifications
You must be signed in to change notification settings - Fork 115
Add max_concurrent_shard_requests to open PIT API #4142
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ | |
|
|
||
| import { RequestBase } from '@_types/Base' | ||
| import { ExpandWildcards, Indices, Routing, SearchType } from '@_types/common' | ||
| import { long } from '@_types/Numeric' | ||
| import { integer, long } from '@_types/Numeric' | ||
| import { RequestItem } from './types' | ||
|
|
||
| /** | ||
|
|
@@ -101,13 +101,14 @@ export interface Request extends RequestBase { | |
| include_named_queries_score?: boolean | ||
| /** | ||
| * Maximum number of concurrent searches the multi search API can execute. | ||
| * Defaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`. | ||
| */ | ||
| max_concurrent_searches?: long | ||
| max_concurrent_searches?: integer | ||
|
||
| /** | ||
| * Maximum number of concurrent shard requests that each sub-search request executes per node. | ||
| * @server_default 5 | ||
| */ | ||
| max_concurrent_shard_requests?: long | ||
| max_concurrent_shard_requests?: integer | ||
|
||
| /** | ||
| * Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use
@server_defaultas it expects a number