start-local script, which starts Elasticsearch and Kibana in Docker with a single command.
Prerequisites
- Docker Desktop installed and running.
- On Windows, install Windows Subsystem for Linux (WSL) before proceeding.
Start Elasticsearch and Kibana
Run the When the script finishes, you will see output similar to:The generated password is also written to
start-local script. It creates an elastic-start-local directory, writes a .env file with credentials, and starts both services via Docker Compose.elastic-start-local/.env as ES_LOCAL_PASSWORD. The .env file also contains an API key in ES_LOCAL_API_KEY.Verify Elasticsearch is running
Confirm the node is up and responding:You should receive a JSON response with the cluster name, node name, and version:
Index a document
Add a document to the The response includes the assigned
my-index index. Elasticsearch creates the index automatically if it does not exist and assigns the document an ID._id and a result field set to created:Run a search query
Search for documents where the The
body field matches distributed:hits.hits array contains matching documents with relevance scores:Next steps
Installation
Deploy Elasticsearch on Linux, macOS, Windows, or with Docker Compose for production-like setups.
Core concepts
Understand indices, shards, mappings, and cluster architecture.
Search with Query DSL
Explore the full Query DSL for boolean queries, filters, aggregations, and more.
ES|QL
Learn the piped ES|QL language for analytics and data transformation.
