Use Elasticsearch Query Builder

Enter your data below to use the Elasticsearch Query Builder

📌 Try these examples:
RESULT

Last updated

Elasticsearch Query DSL

Elasticsearch uses a JSON-based Query DSL (Domain Specific Language) for searching. Queries are divided into two categories: leaf queries (match, term, range) that search specific fields, and compound queries (bool, dis_max) that combine multiple queries. Understanding the difference between query (affects scoring) and filter (binary yes/no, cached) is key to performance.

Common Query Types

QueryUse Case
matchFull-text search on analyzed fields
termExact value match (keyword fields)
rangeNumeric or date range
boolCombine queries with must/should/must_not/filter
multi_matchSearch across multiple fields
wildcardPattern matching with * and ?
fuzzyApproximate matching (typo tolerance)
nestedQuery nested objects

Bool Query Example

JSON
{
  "query": {
    "bool": {
      "must": [
        { "match": { "title": "elasticsearch" } }
      ],
      "filter": [
        { "term":  { "status": "published" } },
        { "range": { "date": { "gte": "2026-01-01" } } }
      ],
      "should": [
        { "match": { "tags": "search" } }
      ],
      "must_not": [
        { "term": { "deleted": true } }
      ]
    }
  },
  "sort": [
    { "date": { "order": "desc" } },
    "_score"
  ],
  "from": 0,
  "size": 10
}

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.