[][src]Struct elasticsearch::Elasticsearch

pub struct Elasticsearch { /* fields omitted */ }

Root client for top level APIs

Methods

impl Elasticsearch[src]

pub fn new(transport: Transport) -> Self[src]

Creates a new instance of the root client

pub async fn send<'_, '_, '_, B, Q: ?Sized>(
    &'_ self,
    method: Method,
    path: &'_ str,
    headers: HeaderMap,
    query_string: Option<&'_ Q>,
    body: Option<B>
) -> Result<Response, Error> where
    B: Body,
    Q: Serialize
[src]

Creates an asynchronous request that can be awaited

Accepts the HTTP method and relative path to an API, and optional query string and body.

impl Elasticsearch[src]

pub fn cat(&self) -> Cat[src]

Creates a namespace client for Cat APIs

impl Elasticsearch[src]

pub fn ccr(&self) -> Ccr[src]

Creates a namespace client for Cross Cluster Replication APIs

impl Elasticsearch[src]

pub fn cluster(&self) -> Cluster[src]

Creates a namespace client for Cluster APIs

impl Elasticsearch[src]

pub fn enrich(&self) -> Enrich[src]

Creates a namespace client for Enrich APIs

impl Elasticsearch[src]

pub fn graph(&self) -> Graph[src]

Creates a namespace client for Graph APIs

impl Elasticsearch[src]

pub fn ilm(&self) -> Ilm[src]

Creates a namespace client for Index Lifecycle Management APIs

impl Elasticsearch[src]

pub fn indices(&self) -> Indices[src]

Creates a namespace client for Indices APIs

impl Elasticsearch[src]

pub fn ingest(&self) -> Ingest[src]

Creates a namespace client for Ingest APIs

impl Elasticsearch[src]

pub fn license(&self) -> License[src]

Creates a namespace client for License APIs

impl Elasticsearch[src]

pub fn migration(&self) -> Migration[src]

Creates a namespace client for Migration APIs

impl Elasticsearch[src]

pub fn ml(&self) -> Ml[src]

Creates a namespace client for Machine Learning APIs

impl Elasticsearch[src]

pub fn nodes(&self) -> Nodes[src]

Creates a namespace client for Nodes APIs

impl Elasticsearch[src]

pub fn security(&self) -> Security[src]

Creates a namespace client for Security APIs

impl Elasticsearch[src]

pub fn slm(&self) -> Slm[src]

Creates a namespace client for Snapshot Lifecycle Management APIs

impl Elasticsearch[src]

pub fn snapshot(&self) -> Snapshot[src]

Creates a namespace client for Snapshot APIs

impl Elasticsearch[src]

pub fn sql(&self) -> Sql[src]

Creates a namespace client for Sql APIs

impl Elasticsearch[src]

pub fn ssl(&self) -> Ssl[src]

Creates a namespace client for Ssl APIs

impl Elasticsearch[src]

pub fn tasks(&self) -> Tasks[src]

Creates a namespace client for Tasks APIs

impl Elasticsearch[src]

pub fn watcher(&self) -> Watcher[src]

Creates a namespace client for Watcher APIs

impl Elasticsearch[src]

pub fn xpack(&self) -> Xpack[src]

Creates a namespace client for X-Pack APIs

impl Elasticsearch[src]

pub fn bulk<'a, 'b>(&'a self, parts: BulkParts<'b>) -> Bulk<'a, 'b, ()>[src]

Allows to perform multiple index/update/delete operations in a single request.

pub fn clear_scroll<'a, 'b>(
    &'a self,
    parts: ClearScrollParts<'b>
) -> ClearScroll<'a, 'b, ()>
[src]

Explicitly clears the search context for a scroll.

pub fn count<'a, 'b>(&'a self, parts: CountParts<'b>) -> Count<'a, 'b, ()>[src]

Returns number of documents matching a query.

pub fn create<'a, 'b>(&'a self, parts: CreateParts<'b>) -> Create<'a, 'b, ()>[src]

Creates a new document in the index.

Returns a 409 response when a document with a same ID already exists in the index.

pub fn delete<'a, 'b>(&'a self, parts: DeleteParts<'b>) -> Delete<'a, 'b>[src]

Removes a document from the index.

pub fn delete_by_query<'a, 'b>(
    &'a self,
    parts: DeleteByQueryParts<'b>
) -> DeleteByQuery<'a, 'b, ()>
[src]

Deletes documents matching the provided query.

pub fn delete_by_query_rethrottle<'a, 'b>(
    &'a self,
    parts: DeleteByQueryRethrottleParts<'b>
) -> DeleteByQueryRethrottle<'a, 'b, ()>
[src]

Changes the number of requests per second for a particular Delete By Query operation.

pub fn delete_script<'a, 'b>(
    &'a self,
    parts: DeleteScriptParts<'b>
) -> DeleteScript<'a, 'b>
[src]

Deletes a script.

pub fn exists<'a, 'b>(&'a self, parts: ExistsParts<'b>) -> Exists<'a, 'b>[src]

Returns information about whether a document exists in an index.

pub fn exists_source<'a, 'b>(
    &'a self,
    parts: ExistsSourceParts<'b>
) -> ExistsSource<'a, 'b>
[src]

Returns information about whether a document source exists in an index.

pub fn explain<'a, 'b>(&'a self, parts: ExplainParts<'b>) -> Explain<'a, 'b, ()>[src]

Returns information about why a specific matches (or doesn't match) a query.

pub fn field_caps<'a, 'b>(
    &'a self,
    parts: FieldCapsParts<'b>
) -> FieldCaps<'a, 'b, ()>
[src]

Returns the information about the capabilities of fields among multiple indices.

pub fn get<'a, 'b>(&'a self, parts: GetParts<'b>) -> Get<'a, 'b>[src]

Returns a document.

pub fn get_script<'a, 'b>(
    &'a self,
    parts: GetScriptParts<'b>
) -> GetScript<'a, 'b>
[src]

Returns a script.

pub fn get_source<'a, 'b>(
    &'a self,
    parts: GetSourceParts<'b>
) -> GetSource<'a, 'b>
[src]

Returns the source of a document.

pub fn index<'a, 'b>(&'a self, parts: IndexParts<'b>) -> Index<'a, 'b, ()>[src]

Creates or updates a document in an index.

pub fn info<'a, 'b>(&'a self) -> Info<'a, 'b>[src]

Returns basic information about the cluster.

pub fn mget<'a, 'b>(&'a self, parts: MgetParts<'b>) -> Mget<'a, 'b, ()>[src]

Allows to get multiple documents in one request.

pub fn msearch<'a, 'b>(&'a self, parts: MsearchParts<'b>) -> Msearch<'a, 'b, ()>[src]

Allows to execute several search operations in one request.

pub fn msearch_template<'a, 'b>(
    &'a self,
    parts: MsearchTemplateParts<'b>
) -> MsearchTemplate<'a, 'b, ()>
[src]

Allows to execute several search template operations in one request.

pub fn mtermvectors<'a, 'b>(
    &'a self,
    parts: MtermvectorsParts<'b>
) -> Mtermvectors<'a, 'b, ()>
[src]

Returns multiple termvectors in one request.

pub fn ping<'a, 'b>(&'a self) -> Ping<'a, 'b>[src]

Returns whether the cluster is running.

pub fn put_script<'a, 'b>(
    &'a self,
    parts: PutScriptParts<'b>
) -> PutScript<'a, 'b, ()>
[src]

Creates or updates a script.

pub fn reindex<'a, 'b>(&'a self) -> Reindex<'a, 'b, ()>[src]

Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.

pub fn reindex_rethrottle<'a, 'b>(
    &'a self,
    parts: ReindexRethrottleParts<'b>
) -> ReindexRethrottle<'a, 'b, ()>
[src]

Changes the number of requests per second for a particular Reindex operation.

pub fn render_search_template<'a, 'b>(
    &'a self,
    parts: RenderSearchTemplateParts<'b>
) -> RenderSearchTemplate<'a, 'b, ()>
[src]

Allows to use the Mustache language to pre-render a search definition.

pub fn scroll<'a, 'b>(&'a self, parts: ScrollParts<'b>) -> Scroll<'a, 'b, ()>[src]

Allows to retrieve a large numbers of results from a single search request.

pub fn search<'a, 'b>(&'a self, parts: SearchParts<'b>) -> Search<'a, 'b, ()>[src]

Returns results matching a query.

pub fn search_shards<'a, 'b>(
    &'a self,
    parts: SearchShardsParts<'b>
) -> SearchShards<'a, 'b, ()>
[src]

Returns information about the indices and shards that a search request would be executed against.

pub fn search_template<'a, 'b>(
    &'a self,
    parts: SearchTemplateParts<'b>
) -> SearchTemplate<'a, 'b, ()>
[src]

Allows to use the Mustache language to pre-render a search definition.

pub fn termvectors<'a, 'b>(
    &'a self,
    parts: TermvectorsParts<'b>
) -> Termvectors<'a, 'b, ()>
[src]

Returns information and statistics about terms in the fields of a particular document.

pub fn update<'a, 'b>(&'a self, parts: UpdateParts<'b>) -> Update<'a, 'b, ()>[src]

Updates a document with a script or partial document.

pub fn update_by_query<'a, 'b>(
    &'a self,
    parts: UpdateByQueryParts<'b>
) -> UpdateByQuery<'a, 'b, ()>
[src]

Performs an update on every document in the index without changing the source, for example to pick up a mapping change.

pub fn update_by_query_rethrottle<'a, 'b>(
    &'a self,
    parts: UpdateByQueryRethrottleParts<'b>
) -> UpdateByQueryRethrottle<'a, 'b, ()>
[src]

Changes the number of requests per second for a particular Update By Query operation.

Trait Implementations

impl Clone for Elasticsearch[src]

impl Debug for Elasticsearch[src]

impl Default for Elasticsearch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.