Lattice
Skip to content

Elasticsearch

elastic.codatabaseself-hosted

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 Lattice editorial · Facts verified · method

licence
Elastic-License-2.0
language
Java
cost
usage-based

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. — that is what this layer of the stack is answerable for. See the full Retrieval & Vector Stores section for the rest of the options.

Visit elastic.coCompare with another 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)

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.

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