Struct elasticsearch::FieldCaps
source · pub struct FieldCaps<'a, 'b, B> { /* private fields */ }
Expand description
Builder for the Field Caps API
Returns the information about the capabilities of fields among multiple indices.
Implementations
sourceimpl<'a, 'b, B> FieldCaps<'a, 'b, B>where
B: Body,
impl<'a, 'b, B> FieldCaps<'a, 'b, B>where
B: Body,
sourcepub fn new(transport: &'a Transport, parts: FieldCapsParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: FieldCapsParts<'b>) -> Self
Creates a new instance of FieldCaps with the specified API parts
sourcepub fn allow_no_indices(self, allow_no_indices: bool) -> Self
pub fn allow_no_indices(self, allow_no_indices: bool) -> Self
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all
string or when no indices have been specified)
sourcepub fn body<T>(self, body: T) -> FieldCaps<'a, 'b, JsonBody<T>>where
T: Serialize,
pub fn body<T>(self, body: T) -> FieldCaps<'a, 'b, JsonBody<T>>where
T: Serialize,
The body for the API call
sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
sourcepub fn expand_wildcards(self, expand_wildcards: &'b [ExpandWildcards]) -> Self
pub fn expand_wildcards(self, expand_wildcards: &'b [ExpandWildcards]) -> Self
Whether to expand wildcard expression to concrete indices that are open, closed or both.
sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
sourcepub fn filters(self, filters: &'b [&'b str]) -> Self
pub fn filters(self, filters: &'b [&'b str]) -> Self
An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent
sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Whether specified concrete indices should be ignored when unavailable (missing or closed)
sourcepub fn include_unmapped(self, include_unmapped: bool) -> Self
pub fn include_unmapped(self, include_unmapped: bool) -> Self
Indicates whether unmapped fields should be included in the response.
sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.