pub struct Indices<'a> { /* private fields */ }
Expand description

Namespace client for Indices APIs

Implementations

Creates a new instance of Indices

Indices Add Block API

Adds a block to an index.

Indices Analyze API

Performs the analysis process on a text and return the tokens breakdown of the text.

Indices Clear Cache API

Clears all or specific caches for one or more indices.

Indices Clone API

Clones an index

Indices Close API

Closes an index.

Indices Create API

Creates an index with optional settings and mappings.

Examples

Create an index with a mapping

let client = Elasticsearch::default();
let response = client
    .indices()
    .create(IndicesCreateParts::Index("test_index"))
    .body(json!({
        "mappings" : {
            "properties" : {
                "field1" : { "type" : "text" }
            }
        }
    }))
    .send()
    .await?;
    

Indices Create Data Stream API

Creates a data stream

Indices Data Streams Stats API

Provides statistics on operations happening in a data stream.

Indices Delete API

Deletes an index.

Indices Delete Alias API

Deletes an alias.

Indices Delete Data Stream API

Deletes a data stream.

Indices Delete Index Template API

Deletes an index template.

Indices Delete Template API

Deletes an index template.

Indices Disk Usage API

Analyzes the disk usage of each field of an index or data stream  

Optional, experimental

This requires the experimental-apis feature. Can have breaking changes in future versions or might even be removed entirely.

Indices Downsample API

Downsample an index  

Optional, experimental

This requires the experimental-apis feature. Can have breaking changes in future versions or might even be removed entirely.

Indices Exists API

Returns information about whether a particular index exists.

Indices Exists Alias API

Returns information about whether a particular alias exists.

Indices Exists Index Template API

Returns information about whether a particular index template exists.

Indices Exists Template API

Returns information about whether a particular index template exists.

Indices Field Usage Stats API

Returns the field usage stats for each field of an index  

Optional, experimental

This requires the experimental-apis feature. Can have breaking changes in future versions or might even be removed entirely.

Indices Flush API

Performs the flush operation on one or more indices.

Indices Forcemerge API

Performs the force merge operation on one or more indices.

Indices Get API

Returns information about one or more indices.

Indices Get Alias API

Returns an alias.

Indices Get Data Stream API

Returns data streams.

Indices Get Field Mapping API

Returns mapping for one or more fields.

Indices Get Index Template API

Returns an index template.

Indices Get Mapping API

Returns mappings for one or more indices.

Indices Get Settings API

Returns settings for one or more indices.

Indices Get Template API

Returns an index template.

Indices Migrate To Data Stream API

Migrates an alias to a data stream

Indices Modify Data Stream API

Modifies a data stream

Indices Open API

Opens an index.

Indices Promote Data Stream API

Promotes a data stream from a replicated data stream managed by CCR to a regular data stream

Indices Put Alias API

Creates or updates an alias.

Indices Put Index Template API

Creates or updates an index template.

Indices Put Mapping API

Updates the index mappings.

Examples

Put a mapping into an existing index, assuming the index does not have a mapping, or that any properties specified do not conflict with existing properties

let client = Elasticsearch::default();
let response = client
    .indices()
    .put_mapping(IndicesPutMappingParts::Index(&["test_index"]))
    .body(json!({
        "properties" : {
            "field1" : { "type" : "text" }
        }
    }))
    .send()
    .await?;
    

Indices Put Settings API

Updates the index settings.

Indices Put Template API

Creates or updates an index template.

Indices Recovery API

Returns information about ongoing index shard recoveries.

Indices Refresh API

Performs the refresh operation in one or more indices.

Indices Reload Search Analyzers API

Reloads an index’s search analyzers and their resources.

Indices Resolve Index API

Returns information about any matching indices, aliases, and data streams

Indices Rollover API

Updates an alias to point to a new index when the existing index is considered to be too large or too old.

Indices Segments API

Provides low-level information about segments in a Lucene index.

Indices Shard Stores API

Provides store information for shard copies of indices.

Indices Shrink API

Allow to shrink an existing index into a new index with fewer primary shards.

Indices Simulate Index Template API

Simulate matching the given index name against the index templates in the system

Indices Simulate Template API

Simulate resolving the given template name or body

Indices Split API

Allows you to split an existing index into a new index with more primary shards.

Indices Stats API

Provides statistics on operations happening in an index.

Indices Unfreeze API

Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.

Indices Update Aliases API

Updates index aliases.

Indices Validate Query API

Allows a user to validate a potentially expensive query without executing it.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more