Adding elasticsearch library as a dependency

Run this command in a terminal, in your project's directory:

cargo add elasticsearch

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

elasticsearch = "9.1.0-alpha.1"

The elasticsearch library will be automatically available globally. Read the elasticsearch library documentation.

Back to the crate overview.