Skip to main content

Elasticsearch Query Tester

Paste or build Elasticsearch queries and get instant explanations of each clause. Validates your JSON, explains bool, match, term, range, wildcard, and aggregation clauses. Includes a field type guide.

✓ 8 query type templates ✓ Clause-by-clause analysis ✓ Runs 100% in your browser

Frequently Asked Questions

What is the Elasticsearch bool query?▼

The bool query is the primary way to combine multiple queries. It has four clauses: must (all must match, contributes to relevance score), filter (must match but doesn't affect score — cached, faster), should (optional — boosts score if matched), and must_not (excluded, cached). Use filter for structured data like status or date ranges, and must for full-text relevance.

What's the difference between match and term?▼

match is for full-text fields — it analyzes the query string using the same analyzer as the indexed field (lowercasing, stemming, etc.). term is for exact value matching on keyword, numeric, and boolean fields. Using term on a text field usually fails because the stored value is tokenized, not the original string.

When should I use filter vs must?▼

Use filter for anything where relevance score doesn't matter — IDs, status codes, date ranges, numeric thresholds. Filter results are cached by Elasticsearch, making them significantly faster on repeated queries. Use must only when you want the clause to contribute to the _score (full-text relevance).

What does size: 0 mean in aggregations?▼

Setting size: 0 tells Elasticsearch not to return any document hits — only the aggregation results. This is the standard pattern for analytics queries where you only care about counts, averages, or groupings, not the actual documents.

What is minimum_should_match?▼

In a bool query with should clauses, minimum_should_match controls how many should conditions must match. Normally if must or filter clauses exist, should is optional. Set minimum_should_match: 1 to require at least one should clause to match even when must/filter is present.

Does this tool send my query to Elasticsearch?▼

No. All analysis runs entirely in your browser. Nothing is sent to any server — not Elasticsearch, not our servers, nothing. Your query stays local.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →