elasticsearch-rs

repository·main·Indexed 21 days ago

https://github.com/elastic/elasticsearch-rs

A Rust client for Elasticsearch. It supports WebAssembly (Wasm) environments using the Fetch API and includes a custom xtask build system. The library provides access to various Elasticsearch namespaces including cluster management, indices creation and mapping, Cat APIs, Cross-cluster Replication (CCR), Async Search, and Connector and Sync Jobs APIs.

Tokens
15.6K
Snippets
41
Records
95
Agent score
73%

What's inside elasticsearch-rs

  1. Overview of the Elasticsearch Rust Client

    main

    The Elasticsearch Rust client is the official client for communicating with Elasticsearch. It provides fluent builders for all Elasticsearch REST API endpoints, persistent keep-alive connections, TLS support (using system or custom certificates), proxy support with authentication, and asynchronous support via the Tokio runtime.

    For full technical details, refer to the API documentation on docs.rs.

  2. Use ES|QL APIs for data analysis

    main
    The Elasticsearch Query Language (ES|QL) allows you to filter, transform, and analyze data stored in Elasticsearch using a powerful query language. In elasticsearch-rs, you can leverage ES|QL APIs to perform complex data manipulations directly through the client. For a deep dive into the language syntax and specific query capabilities, refer to the official ES|QL documentation.
  3. Use Index Lifecycle Management (ILM) APIs

    main

    Index Lifecycle Management (ILM) allows you to automate how indices are managed over time. Instead of running manual management tasks on a fixed schedule, ILM allows you to trigger actions based on factors like shard size, age, or performance requirements.

    To control how indices are handled as they age, you can attach a lifecycle policy to an index template. Updating a policy will affect both new indices created with that template and existing indices that follow it.