[][src]Crate elastic_query

Structs

ParseError

error occurred when parsing user input

Enums

Rule

Functions

convert

convert user input to Elasticsearch DSL example : convert("a = 1 and (b = 2 and (c = 3)".to_string(), 0, 100, vec![], vec![]) will generate result : { "from": 0, "query": { "bool": { "must": [{ "match": { "a": { "query": "1", "type": "phrase" } } }, { "bool": { "must": [{ "match": { "b": { "query": "2", "type": "phrase" } } }, { "match": { "c": { "query": "3", "type": "phrase" } } }] } }] } }, "size": 100 }