Lattice
Skip to content

Elasticsearch

databaseSelf-hostedelastic.co

Elasticsearch is a self-hosted database in the Retrieval & Vector Stores layer of the AI stack. BM25 plus dense vectors in one index, with hybrid ranking.

By Facts verifiedmethod

Licence
Elastic-License-2.0
Language
Java
Cost
usage based
Owned by
Data & Retrieval

Use Elasticsearch when

One index carrying BM25 and dense vectors, with ranking you can tune.

Skip Elasticsearch when

You need a permissive licence: the Elastic licence is not OSI-approved.

Holds the embeddings, returns the few that matter. See every retrieval tool.

Badge this entry
Lattice badge: Elasticsearch verified 2026-09
[![Elasticsearch on Lattice: verified 2026-09](https://lattice.kunjshah.in/retrieval-vector-stores/elasticsearch/badge.svg)](https://lattice.kunjshah.in/retrieval-vector-stores/elasticsearch)

Rules of thumb

  • Most bad retrieval is a ranking or chunking problem, not a database problem. Fix the eval set and the chunks before you migrate stores.
  • Test filtered recall, not just recall. Metadata filters are where vector stores differ most and where demos never look.
  • Use the database you already run until it measurably fails. A second datastore is a second thing to back up, secure and page on.

Quick answers

Is Elasticsearch open source?
Not under an OSI-approved licence. Elasticsearch is source-available under Elastic-License-2.0, which restricts some commercial uses. It is paid for by usage.
What are the alternatives to Elasticsearch?
The closest alternatives to Elasticsearch are Vespa, Weaviate and Qdrant.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

Reading on retrieval

Alternatives to Elasticsearch

compare 3 →

Listed as an alternative to

  • Weaviate
  • Vespa

Also in retrieval

  • pgvector
  • Qdrant
  • Weaviate
  • Chroma
  • Pinecone
  • Milvus
  • Turbopuffer
  • Unstructured
  • Vespa
  • Rerankers
  • Jina AI
  • LangChain Text Splitters
  • Docling
  • LlamaParse