Implementation of the ElasticSearch Query DSL.
ElasticSearch offers a
rich DSL for searches.
It is JSON based, and therefore very easy to use and composable if using from a
dynamic language (e.g.
but Rust, being a staticly-typed language, things are different. The
module defines a set of builder objects which can be similarly composed to the same
use rs_es::query::Query; let query = Query::build_bool() .with_must(vec![Query::build_term("field_a", "value").build(), Query::build_range("field_b") .with_gte(5) .with_lt(10) .build()]) .build();
Implementations of full-text ES queries
Specific options for the Function option of various queries
Specific Term level queries
Minimum should match - used in numerous queries TODO: should go somewhere specific
Flags - multiple operations can take a set of flags, each set is dependent on the operation in question, but they're all formatted to a similar looking String
Match all query
Query represents all available queries