ELASTICSEARCH DSL BUILDER · INTELLIJ PLUGIN

Build visually.
Check before you run.

Build Elasticsearch and OpenSearch requests from cards inside your IDE, see the JSON as you go, and run them in place.

160+ DSL checks highlight potential errors, unexpected behavior, and performance concerns before you run.

Coming to the JetBrains Marketplace · paid plugin, trial available · what the plugin offers

  • IntelliJ IDEA 2025.2+
  • Elasticsearch 8 · 9
  • Elastic Cloud Serverless
  • OpenSearch 2 · 3
  • AWS SigV4 sign-in
The Visual Builder's Query section: a bool with a filter on category, two should clauses, minimum_should_match 3, and its note: minimum_should_match asks for 3 of the bool's 2 should clauses: nothing can match. Use 2 or fewer, with a Use 2 button The Visual Builder's Query section: a bool with a filter on category, two should clauses, minimum_should_match 3, and its note: minimum_should_match asks for 3 of the bool's 2 should clauses: nothing can match. Use 2 or fewer, with a Use 2 button

ONE REQUEST, THREE CONNECTED VIEWS

One selection.
Three views in sync.

Select a clause. Follow the glow from the outline to its card and the exact JSON it generates.

A clause chosen in the outline, then a card: each brings the other two views to the same part.
01 / FIND YOUR WAY

A map of the whole request.

Follow nested clauses in the outline. Jump straight to the part you want to change.

02 / WORK WITH THE PARTS

Fields, values, clear choices.

Build clauses with forms and field suggestions from your cluster. Add parameters as you need them.

03 / SEE WHAT YOU WILL SEND

The JSON stays in view.

Read the generated request alongside your cards, or switch to Edit to work directly with JSON.

LEARN THE QUERY DSL AS YOU BUILD

No syntax to remember.
Look it up as you go.

Find a clause by what you want it to do, fill in its form, and watch the JSON it writes. A finished card says what it does in plain words, and Help says what the common query and aggregation types are for. Read about learning as you build ↗

The clause picker on a terms aggregation with over time typed: it finds auto_date_histogram and date_histogramThe clause picker on a terms aggregation with over time typed: it finds auto_date_histogram and date_histogram
Type what you want: “over time” finds the date histograms.
A multi_match card with a new parameter row open: the parameters multi_match takes, from analyzer to slopA multi_match card with a new parameter row open: the parameters multi_match takes, from analyzer to slop
A clause's parameters, offered by name.
Visual Builder help open beside the cards: the full-text clauses, from match to match_phrase_prefix, and the exact-value clauses, each with a line on what it is forVisual Builder help open beside the cards: the full-text clauses, from match to match_phrase_prefix, and the exact-value clauses, each with a line on what it is for
Help: what each common clause is for, in a line.
The Console with the documentation of match open over the request: what it does, an example, and a link to the Elasticsearch referenceThe Console with the documentation of match open over the request: what it does, an example, and a link to the Elasticsearch reference
In the Console: what a type does, an example, and the official reference.
01

Search by intent.

Type “group by” or “over time” to find terms and date_histogram.

02

Parameters, offered.

Each clause lists the parameters it takes, and a parameter's box fits its value: a choice, a number or common values.

03

Explained in place.

Help covers the common types. Some notes have a Why? that explains the engine's behavior, and in the Console a type's documentation links to the official reference.

04

Read a search you didn't write.

Paste one from a ticket or your code and read it as cards, or start from 80+ ready-made examples (70+ on OpenSearch).

MAPPING-AWARE

Your fields, your types.
Checked against your mapping.

The builder reads the mapping of the indices you search. It offers the fields that fit each clause, and notes a field that is missing, is of the wrong kind, or can't be searched, sorted or aggregated as mapped. Explore the checks ↗

The fields list on a multi_match card: the recommended text fields first, then the others, each with its typeThe fields list on a multi_match card: the recommended text fields first, then the others, each with its type
Fields with their types; those that fit the clause first.
A term on in_stock with the value yes, and its note: in_stock is a boolean field, and yes is not true or falseA term on in_stock with the value yes, and its note: in_stock is a boolean field, and yes is not true or false
A value the field can't hold, noted under its card.
01

Fields that fit.

Each field is shown with its type, and those that fit the clause come first.

02

Values checked.

Text where a number, a date or true/false belongs, or a vector of the wrong width, is noted before you run.

03

Every index read.

When the indices you search disagree about a field, or some lack it, the builder holds back the notes it can't be sure of instead of guessing.

04

Values from your index.

The value box suggests values found in the index, such as the categories a keyword field holds.

BUILT-IN QUERY DSL LINTER

Valid isn’t the
same as right.

A request can run without an error and still match nothing, skip a part, or take its time. The builder says so under the card, with a suggested change where there is one, and Inspect DSL lists every note in one place. Where the cluster check is on and the engine supports it, the cluster reads the request too and says what it would refuse; nothing is searched.

Read the note, take its suggested change, or hide a note when the request is what you meant.

Two of the notes, as the builder shows them

Matches nothing

gte 300 and lte 50 leave no value between them.

Suggested change Swap them

Not what it reads as

Two nested clauses on reviews can each be met by a different review.

Suggested change Combine them, with before and after shown first

160+ DSL checks, from what the engines document and do. None of them stops a run. Explore the checks

What a note is based on

  1. The requestBounds that cross, a clause that is optional where it reads as required, a pattern that starts with a wildcard.
  2. Your mappingA field the index does not have, an exact match asked of an analyzed text field, a value its field cannot hold.
  3. Your engine's versionWhat Elasticsearch or OpenSearch, at the version you are connected to, does not have or refuses.
  4. The cluster itselfWhere the cluster check is on, the engine reads the request, searches nothing, and says what it would refuse.
Inspect DSL open over the request: one error, a sort on reviews.stars that needs its nested path, and three behavior notes, each with its suggested change, Go to and HideInspect DSL open over the request: one error, a sort on reviews.stars that needs its nested path, and three behavior notes, each with its suggested change, Go to and Hide
Inspect DSL: every note on the request in one list, by kind. Here each has a suggested change, with Go to and Hide beside it.

WITH YOUR AI ASSISTANT

Draft it anywhere.
Check it against your cluster.

An assistant can write a query from a sentence. It has usually seen neither your mapping nor your engine's version, and has not run what it wrote. Paste its draft into Import: it becomes cards, the notes say what your mapping and your engine make of it, and Run shows what it finds in your data. Read about Import ↗

Import with a search drafted without the index's mapping: a match on title, a term on brand.keyword, a range on reviews.stars and a sort on created_date. The check says no errors found: Elasticsearch 9.5 read the whole request and refused nothingImport with a search drafted without the index's mapping: a match on title, a term on brand.keyword, a range on reviews.stars and a sort on created_date. The check says no errors found: Elasticsearch 9.5 read the whole request and refused nothing
A draft written without the mapping, pasted into Import: the engine reads it and refuses nothing.
The draft loaded as cards, with three notes: no field named title in the mapping; no field named brand.keyword, did you mean brand, with a Use brand button; and reviews.stars is inside nested objects, so here it matches nothingThe draft loaded as cards, with three notes: no field named title in the mapping; no field named brand.keyword, did you mean brand, with a Use brand button; and reviews.stars is inside nested objects, so here it matches nothing
Loaded, the notes say what the engine did not: two fields this index does not have, and one inside nested documents.
01

Your mapping.

A field the index does not have, an exact match asked of an analyzed text field, a value its field cannot hold: noted under the card, with a suggested change where there is one.

02

Your engine.

What your version of Elasticsearch or OpenSearch does not have is noted. Where the cluster check is on, the cluster reads the draft too and says what it would refuse.

03

Your results.

Run it, then see why each hit scored and where the time went. A draft the engine accepts can still find nothing. Where a note can tell, it says so before you run.

The plugin has no AI model and sends nothing to one. It sends requests to the clusters you add, and to nothing else.

EXPLAIN AND PROFILE

Why this hit,
and where the time went.

Select a hit and Explain shows its score part by part, as the engine works it out. Profile runs the search again with profiling, which adds overhead of its own, and shows the engine's timings by phase and by part of your request. Documents shows the documents behind an aggregation bucket, found again exactly. Read about the answer ↗

Explain: the top headphones hit, matched with a score of 15.99, and its score breakdown: the name branch that counted, each word with its score and its DetailsExplain: the top headphones hit, matched with a score of 15.99, and its score breakdown: the name branch that counted, each word with its score and its Details
Explain: the top hit's score, the branch that counted, and what each word added.
Profile: a products search profiled, the phases as a bar and the execution tree, its parts linked to the request where that is certainProfile: a products search profiled, the phases as a bar and the execution tree, its parts linked to the request where that is certain
Profile: the phases as a bar, and the execution tree, each part linked to its clause where that is certain.
Aggregations: orders per month, February chosen, and its documents below the table: 10 of the 65 it countedAggregations: orders per month, February chosen, and its documents below the table: 10 of the 65 it counted
Aggregations: orders per month, February chosen, and its documents: 10 of the 65 it counted.

SEE IT IN THE IDE

A real search,
start to finish.

Build a product search from cards, import the one production runs and inspect it, explain a score and profile it, try a vector version, then keep it, share it and carry on in the Console, History, the Browser and Health.

Read the builder guide ↗
Under twelve minutes, in fifteen chapters, on a local node and an Elastic Cloud deployment. The player loads from YouTube when you press play.

FROM A FIRST FILTER TO A NESTED QUERY

Room for the query you actually need.

Start with a clause. Add structure, retrieval and aggregations without losing sight of the request.

Compose, then refine.

Combine must, filter, should and must_not. Nest groups, duplicate clauses, or switch a clause off while keeping it in the builder.

Explore the builder ↗

Go beyond the hits.

Build aggregations and sub-aggregations. Add sorting, highlighting, pagination and the search options your request needs.

See the search options ↗

Combine ways to search.

Work with vector and hybrid search, retrievers and re-ranking. The choices offered follow the connected engine and its version, and a note says when something came in a later one.

Check compatibility ↗

THE REST OF YOUR WORKFLOW, RIGHT BESIDE IT

Build here. Keep working here.

Four companion tabs take you from composing a request to exploring the cluster behind it.

Write it. Run it. Read the response.

A familiar method, path and body editor with autocomplete, formatting and hover documentation. Run the request at your caret.

Explore the Console ↗
The Console suggesting the fields a terms aggregation can take, beside the response to the searchThe Console suggesting the fields a terms aggregation can take, beside the response to the search

SAFE ON A REAL CLUSTER

Destructive requests
ask first.

A delete or update by query says how many documents it would touch before it runs. On a cluster marked as production, you type its name to go ahead. Connection secrets stay in the IDE's password safe. See what asks first ↗

A delete by query on orders-2024 run in the Console: the Delete by query dialog says 219 documents match the query right now and would be deleted, with Cancel chosenA delete by query on orders-2024 run in the Console: the Delete by query dialog says 219 documents match the query right now and would be deleted, with Cancel chosen
A delete by query, counted before it runs: 219 documents would go.
Edit Cluster for the local connection: the Production cluster option, shown in red everywhere when ticked, and the line saying credentials are stored in the IDE password safeEdit Cluster for the local connection: the Production cluster option, shown in red everywhere when ticked, and the line saying credentials are stored in the IDE password safe
A connection's settings: the Production cluster option, and credentials in the IDE password safe.
01

Counted first.

Delete or update by query asks first, with how many documents it would touch now.

02

Production, marked.

A production cluster shows in red wherever it appears, and a destructive request asks you to type its name.

03

Secrets kept out.

Passwords and keys live in the IDE's password safe, and recognized secrets are taken out of History.

04

Nothing sent elsewhere.

No telemetry and no AI service. The plugin sends requests to the clusters you add, and to nothing else.

WHAT THE PLUGIN OFFERS

One plugin.
The whole workflow.

Build a request, check it, run it and read the answer, then keep working with the cluster behind it, all in one tool window. Every feature here is in the trial, to try on your own cluster.

In the Visual Builder

Build

  • Forms for queries, aggregations and search options
  • kNN, hybrid search and retrievers as cards
  • The outline, the cards and the JSON in step
  • Fields and values suggested from your cluster
  • Switch off, duplicate, drag and undo

Check

  • 160+ DSL checks, noted under the card
  • Checked against your mapping and your engine's version
  • The cluster's own reading of the request, where its check is on
  • Inspect DSL, with suggested changes

Run and read

  • Search, async search, count, validate, explain, update and delete by query
  • Hits as a table, buckets with bars
  • The documents behind a bucket
  • Explain for a hit's score
  • Profile for where the time went

Bring in and keep

  • Import a JSON body, a Console request or a curl command
  • Edit the JSON by hand
  • Saved queries, shared with the project when you choose
  • Ready-made examples
  • Copy as curl, Open in Console

In the other four tabs

Console

  • Requests as text, run at the caret
  • Autocomplete from each engine's own API specification
  • Hover documentation with the official reference
  • Format and fold
  • Snippets, with your own beside them

History

  • The last 500 requests, and those you keep
  • Favorites, folders, tags and search
  • Export and import

Browser

  • Indices, aliases, templates, ingest pipelines, data streams, snapshot repositories, ILM policies and nodes
  • An index's fields, settings, documents and shards
  • A clause started from a field

Health and Diagnose

  • What needs attention, in sentences
  • Cluster and node figures, with trends
  • Read-only diagnostic checks, found by symptom

Around all of it

Connections and safety

  • Basic, API key, bearer token and AWS SigV4 sign-in
  • Credentials in the IDE's password safe
  • Production clusters marked; destructive requests ask first
  • No telemetry and no AI service: requests go to the clusters you add, and to nothing else

Fitted to your engine

  • Elasticsearch 8 · 9
  • Elastic Cloud Serverless
  • OpenSearch 2 · 3

What is offered follows the version you connect to. It was checked against every Elasticsearch minor version from 8.0 to 9.5, OpenSearch 2.19 and 3.9, and Serverless.

The trial has every feature. Build the search you are working on now, and decide after. Install the plugin

YOUR NEXT QUERY STARTS HERE

Bring the builder
into your IDE.

Installation guide
  1. 01

    Install the plugin

    Open the Elasticsearch DSL Builder tool window in your IntelliJ-based IDE.

  2. 02

    Connect your cluster

    Add a connection in Settings and test it. Connection credentials use the IDE password safe.

  3. 03

    Build your first request

    Start with an example, paste a query, or add your first clause.