#[non_exhaustive]pub struct Request {
pub id: Id,
pub delimiter: Option<String>,
pub format: Option<String>,
pub keep_alive: Option<Duration>,
pub wait_for_completion_timeout: Option<Duration>,
}Expand description
Get async SQL search results.
Get the current status and available results for an async SQL search or stored synchronous SQL search.
If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IdThe identifier for the search.
delimiter: Option<String>The separator for CSV results. The API supports this parameter only for CSV responses.
format: Option<String>The format for the response.
You must specify a format using this parameter or the Accept HTTP header.
If you specify both, the API uses this parameter.
keep_alive: Option<Duration>The retention period for the search and its results.
It defaults to the keep_alive period for the original SQL search.
wait_for_completion_timeout: Option<Duration>The period to wait for complete results. It defaults to no timeout, meaning the request waits for complete search results.
Implementations§
Trait Implementations§
Source§impl Endpoint for Request
impl Endpoint for Request
Source§type Response = Response
type Response = Response
Client::send_as to read them into your
own types.Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
search or
indices.create.Source§fn query(&self) -> Result<Vec<(&'static str, String)>, Error>
fn query(&self) -> Result<Vec<(&'static str, String)>, Error>
Source§fn text_response(&self) -> bool
fn text_response(&self) -> bool
nodes.hot_threads. The text reads as a JSON string, so into a
String.