Calculator
What the Elasticsearch Query Builder does
Elasticsearch Query Builder: generates Status and Elasticsearch query from Index, Field and Search text. Example: index products, field name and search text laptop gives status Query ready.
Status and Elasticsearch query, derived from Index, Field, Search text and Query type. Each change is reflected immediately, which suits quick what-if comparisons.
Spotting a malformed field is far quicker when the structure is laid out clearly. The Elasticsearch Query Builder exists to take that particular chore off your hands.
Payloads stay in the tab, so you can safely paste production data without it reaching a third party.
If you want to check the arithmetic, the field table, the method and a worked example are further down.
What do the Elasticsearch Query Builder fields mean?
The Elasticsearch Query Builder uses 4 inputs. Every box starts with a working value, so there is a real result on screen before you touch anything.
| Field | What to enter | Default |
|---|---|---|
| Index | optional | products |
| Field | optional | name |
| Search text | optional | laptop |
| Query type | choose from match, term or range (gte) | match |
How does the Elasticsearch Query Builder work?
Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same generated output.
Checks happen up front, so errors surface next to the form instead of hiding in the output.
Worked example
These are the values the Elasticsearch Query Builder loads by default, and the result it produces from them. The figures are the tool’s live defaults and its live output, so you can reproduce them exactly.
| Index | products |
|---|---|
| Field | name |
| Search text | laptop |
| Query type | match |
| Status | Query ready |
|---|---|
| Elasticsearch query | GET /products/_search { "query": { "match": { "name": "laptop" } } } |
How to use it
- Fill in Index.
- Type Field.
- Enter Search text.
- Pick a value for Query type: the options are match, term or range (gte).
- Live output means you can search for a target value by nudging an input up and down.
- The panel reports Status and Elasticsearch query.
- The link encodes your inputs, so saving it is enough to reproduce the result later.
What this tool does not do
- Output follows the common convention for this format; a specific toolchain may have its own house style.
- Processing happens in your browser, so very large inputs are bounded by available memory.
- Results are informational: check anything consequential against a second source.
Frequently asked questions
4 things: Index, Field, Search text and Query type. Defaults are loaded for all of them, meaning you can explore the calculation before committing to real figures.
With the values loaded when the page opens, status comes out as Query ready. That number tracks the inputs, so a small edit shows its sensitivity immediately.
Nothing is logged. The tool is client-side code; your data stays where you entered it.
Free, and there is no upsell. The whole tool is the free version.
It implements the published definition directly, without shortcuts or approximations.