﻿---
title: Use Discover with ES|QL
description: Find the Discover tasks that are specific to ES|QL mode, from switching query modes to reading results and building lookup indices.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/use-esql
products:
  - Elastic Documentation
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Use Discover with ES|QL
ES|QL mode in **Discover** lets you explore data with an ES|QL query. The query chooses the data, so you do not need a data view. Classic mode uses data views with Kibana Query Language (KQL) or Lucene.
The editor itself, time parameters, AI assistance, and Fast mode are covered in [Use ES|QL in the Kibana UI](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/query-filter/languages/esql-kibana). If you have not run a query in this mode yet, start with [Get started with ES|QL in Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/try-esql).

## ES|QL tasks in Discover


| When you need this                                                                            | Guide                                                                                                                                                             |
|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| You want to query in ES|QL, or go back to KQL, and you need to know what happens to the query | [Switch between ES|QL and classic mode](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/switch-esql-mode)             |
| You are writing a query and need an index or a field name                                     | [Browse data sources and fields from the editor](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/browse-esql-sources) |
| You have results and want to read them, sort them, or filter from a value                     | [Work with ES|QL results in Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/esql-results)                   |
| You want to change a value in the query without keeping several copies                        | [Add variable controls to Discover queries](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/esql-variable-controls)   |
| You need enrichment data for a `LOOKUP JOIN`                                                  | [Create lookup indices from Discover queries](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/create-lookup-indices)  |
| You grouped with `STATS BY` and want to look inside the groups                                | [Inspect grouped STATS results in Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/inspect-grouped-stats)    |
| You want to keep the chart, the table, or the session                                         | [Save a Discover session for reuse](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/save-open-search)                 |


## Related pages

- [Get started with ES|QL in Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/try-esql)
- [Explore fields and data with Discover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/discover/discover-get-started)
- [Use ES|QL in the Kibana UI](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/query-filter/languages/esql-kibana)
- [Lens visualizations using ES|QL queries](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/8392/explore-analyze/visualize/esorql)