Crate elastic_lens

source ·
Expand description

ElasticLens

An opinionated framework to work with Elasticsearch

Modules

Any iteractions between your code and the Elasticsearch server are encapsulated under this module. One major note is that you are not working directly with an official client, although one may be supported later. What you are working with instead is a wrapper around some third party library that is doing the heavy lifting.
If you use elastic_lens::prelude::* you will bring into scope most of the functionality needed to get a client setup, create requests, and parse results.
All of the logic surrounding creating a request is held in this module.
All of the logic for parsing and working with a response is in this module.

Macros

Create Public Constant Field

Enums

This encapsulates every error which can be emitted by ElasticLens. While there are more fine-grained error types in this crate they can all be converted to this root type.