logo
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 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 Exists Type API

Returns information about whether a particular document type exists. (DEPRECATED)

Indices Flush API

Performs the flush operation on one or more indices.

Indices Flush Synced API

Performs a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead

Indices Forcemerge API

Performs the force merge operation on one or more indices.

Indices Freeze API

Freezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.

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 Get Upgrade API

DEPRECATED Returns a progress status of current upgrade.

Indices Migrate To Data Stream API

Migrates an alias to 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 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 Upgrade API

DEPRECATED Upgrades to the current version of Lucene.

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