Elasticsearch Query Builder
A visual builder for Elasticsearch Query DSL. Add conditions (match, term, terms, range, exists, wildcard, prefix, fuzzy, query_string), combine them in a bool query via must / filter / should / must_not, configure sorting, pagination, _source, and aggregations — the JSON request is generated live as you type.
How a bool query works. In Elasticsearch, conditions are combined inside a bool query: must works like AND and affects relevance scoring, filter works like AND without scoring (faster and cacheable), should works like OR, and must_not excludes documents. If only one must condition is set, the builder outputs it without the bool wrapper.
Each condition consists of a bool context (must / filter / should / must_not), a query type, a field, and a value. terms accepts comma-separated values; range accepts gte/lte bounds (dates, numbers, or expressions like now-7d).
No conditions — a match_all query will be generated.
Result
Free online Elasticsearch query builder. Compose Query DSL requests visually instead of writing JSON by hand: pick a query type (match, match_phrase, term, terms, range, exists, wildcard, prefix, fuzzy, query_string), specify the field and value, and choose the bool context — must, filter, should, or must_not.
The tool supports sorting by multiple fields, pagination via from and size, limiting returned fields with _source, track_total_hits, minimum_should_match, and aggregations: terms, avg, sum, min, max, cardinality, value_count, date_histogram, and histogram. The result is available in three formats: raw JSON request body, a ready cURL command, and a Kibana Dev Tools snippet.
Everything runs locally in your browser — queries are not sent or stored anywhere. A handy tool for developers, DevOps engineers, and analysts working with Elasticsearch and OpenSearch: prototype a search query, debug a bool filter, or prepare an aggregation request in seconds.