Elasticsearch

Last modified: 4/14/2026

Overview

Elasticsearch is a distributed, RESTful search and analytics engine designed for speed and scale.

Elasticsearch, built on Apache Lucene, stores data as schema-free JSON documents, making it highly flexible for handling structured, unstructured, and vector data in real time.

Elasticsearch Key Features

Common Use Cases

Elasticsearch is the heart of the Elastic Stack (formerly the ELK Stack), which includes:

Common use case categories:

Core Terminology

ConceptDescriptionRelational DB Equivalent
IndexA collection of related documents.Database
DocumentA single JSON object containing data fields.Row
FieldAn individual key-value pair within a document.Column
MappingDefines how fields and their data types are indexed.Schema

For local testing, you can quickly get started using the Docker-based installation or try the managed Elastic Cloud service.

ngdpbase Integration

ngdpbase uses Elasticsearch as an optional search provider (ElasticsearchSearchProvider) in place of the default Lunr provider. Enable it via:

"ngdpbase.search.provider": "elasticsearchsearchprovider",
"ngdpbase.search.provider.elasticsearch.url": "http://localhost:9200"

See Configuration Properties Reference and Reindex Pages for setup details.