Qdrant is a dedicated vector database written in Rust and licensed under Apache 2.0; Elasticsearch is a Java search engine built on Lucene whose dense_vector field adds kNN vector search next to BM25 keyword search, aggregations and log analytics. Choose Qdrant when vector retrieval is the job and you want all of it, hybrid fusion included, in the free open source build. Choose Elasticsearch when you already run it, or when keyword search and analytics matter as much as vectors.

Sources are vendor docs, GitHub and vendor benchmark pages, read in November 2026. For the basics, see our explainer on what a vector database is.

How do Qdrant and Elasticsearch compare at a glance?

Every row below is defended in the sections that follow.

Qdrant Elasticsearch
What it is Dedicated vector database Search and analytics engine with a dense_vector field
License Apache 2.0 AGPLv3, SSPL or Elastic License 2.0 (default distribution: ELv2)
Language and runtime Rust Java, on Apache Lucene
Vector index HNSW with payload-aware edges HNSW per segment; bbq_disk clustering (Enterprise)
Quantization TurboQuant, scalar, binary, product (up to 64x) int8, int4, BBQ (up to 32x); quantized by default for float vectors
Hybrid search Dense + sparse + BM25 via Query API, fused with RRF or DBSF, all open source BM25 + kNN; score sum on Basic, RRF and linear retrievers on Enterprise
Filtering Payload filters applied during HNSW traversal filter inside the knn clause applied during search
Managed offering Qdrant Cloud (managed, Hybrid, Private) Elastic Cloud Hosted, Elastic Cloud Serverless
Operational footprint One service; replicas created by hand when self-hosting JVM cluster; vectors must fit in OS page cache for HNSW

Sources: Qdrant on GitHub, Elastic licensing FAQ, dense_vector reference, Qdrant quantization, Qdrant hybrid queries, Elastic self-managed subscriptions, Qdrant Cloud, Elastic Cloud Serverless.

What is the difference between Qdrant and Elasticsearch?

Qdrant was built for one job. Its repository describes it as a "Vector Search Engine for the next generation of AI applications", where each record is a point: a vector plus a JSON payload you can filter on. The README adds that "Qdrant is written in Rust".

Elasticsearch's README calls it "a distributed search and analytics engine, scalable data store and vector database". Vectors live in a field type: the dense_vector field stores vectors and is "primarily used for k-nearest neighbor (kNN) search". Underneath is Lucene, and the runtime is the JVM; Elastic's tuning guide notes that vector data "lives in the OS page cache, separate from the Java heap".

So the real question is whether you want a specialist component next to your other systems, or vectors inside a search platform that also does keyword search and analytics.

How are Qdrant and Elasticsearch licensed?

Qdrant's license is simple: "Qdrant is licensed under the Apache License, Version 2.0." Hybrid fusion and quantization are both in that open source build.

Elasticsearch has three licenses at once. Elastic's FAQ says that "In September 2024, we are adding the Open Source Initiative (OSI) approved AGPLv3 license as an option" alongside SSPL and the Elastic License 2.0. The repository's LICENSE file shows that most source files carry all three, while some code in the x-pack folder is under the Elastic License 2.0 only. The default download stays under the Elastic License 2.0.

The license matters less than the subscription tier. Elastic's self-managed subscriptions page marks "Vector search" and "Filter on ANN" as included in the free Basic tier, but "Reciprocal Rank Fusion (RRF) for hybrid search", "DiskBBQ" and the linear and RRF retrievers as Enterprise only. The Elastic Cloud feature matrix places RRF in the Enterprise column for Cloud Hosted too. Check the tier before you design around a feature.

How do HNSW indexing and quantization differ?

Both engines use HNSW for approximate search. Qdrant extends it: the docs explain that it adds "additional edges based on indexed payload values" so filters can be applied as the search moves through the graph. Elasticsearch builds one graph per Lucene segment; its tuning guide says it "stores the vector values of each segment as a separate HNSW graph".

Quantization stores a compressed copy of each vector to cut memory. Qdrant "supports four quantization methods": TurboQuant (4x to 32x), scalar (4x), binary (up to 32x) and product quantization, which "enables up to 64x compression". You opt in per collection.

Elasticsearch quantizes by default. Since 9.1, float vectors with 384 or more dimensions default to bbq_hnsw, which the reference says "can reduce the memory footprint by 32x at the cost of accuracy"; smaller vectors default to int8_hnsw. From 9.4 and on Serverless, the default becomes bbq_disk, a clustering index that can be more memory friendly than HNSW, but only "when available under the current license", because bbq_disk "requires an Enterprise subscription". Dimensions top out at 4,096.

Which is better for hybrid search, Qdrant or Elasticsearch?

Hybrid search combines keyword and vector results, because embeddings miss exact strings such as error codes. Both engines do it; they differ in what is free.

Qdrant's Query API runs sub-queries through a prefetch parameter and merges them. Its docs say you can search with dense vectors, learned sparse vectors such as SPLADE++, and "BM25 full-text search on text payload fields that have a full-text index", then fuse with rrf or dbsf. RRF "considers the positions of results within each query"; DBSF normalizes the raw scores before combining them. All of it is Apache 2.0.

Elasticsearch started as a keyword engine, and its BM25 relevance tooling is mature. Its docs show an rrf retriever wrapping a keyword retriever and a knn retriever, calling RRF "the recommended starting point for hybrid search, because it needs no score tuning". The catch is the tier: without Enterprise you can combine the knn option with a query in one request, but the docs warn that this "adds the two raw scores together, so you have to tune the boosts by hand".

How does filtered vector search work in each?

Filter after a vector search and you can get far fewer results than you asked for. Both engines filter during the search instead.

In Qdrant, put the condition in query_filter. Create payload indexes for filtered fields before loading data, since the docs say the extra filter-aware graph edges "can only be generated after payload index creation". This runs against qdrant-client 1.20 (tested locally with an in-memory client):

from qdrant_client import QdrantClient, models

client = QdrantClient(url="http://localhost:6333")

# Index the fields you filter on, ideally before ingesting points
client.create_payload_index(
    collection_name="help_articles",
    field_name="lang",
    field_schema=models.PayloadSchemaType.KEYWORD,
)
client.create_payload_index(
    collection_name="help_articles",
    field_name="updated_year",
    field_schema=models.PayloadSchemaType.INTEGER,
)

hits = client.query_points(
    collection_name="help_articles",
    query=[0.2, 0.1, 0.9, 0.7],  # the embedded question
    query_filter=models.Filter(
        must=[
            models.FieldCondition(key="lang", match=models.MatchValue(value="en")),
            models.FieldCondition(key="updated_year", range=models.Range(gte=2025)),
        ]
    ),
    limit=5,
).points

In Elasticsearch, put the filter inside the knn clause. The docs say a filter there "is applied during approximate kNN search to ensure that k matching documents are returned", while a bool filter placed beside a knn query runs afterwards and can return fewer hits. The mapping and request, following the shape of Elastic's own examples:

PUT help-articles
{
  "mappings": {
    "properties": {
      "embedding": { "type": "dense_vector", "dims": 4, "similarity": "cosine" },
      "title": { "type": "text" },
      "lang": { "type": "keyword" },
      "updated_year": { "type": "integer" }
    }
  }
}

POST help-articles/_search
{
  "knn": {
    "field": "embedding",
    "query_vector": [0.2, 0.1, 0.9, 0.7],
    "k": 5,
    "num_candidates": 50,
    "filter": {
      "bool": {
        "filter": [
          { "term": { "lang": "en" } },
          { "range": { "updated_year": { "gte": 2025 } } }
        ]
      }
    }
  },
  "_source": ["title", "lang"]
}

Real embeddings have hundreds of dimensions. One counterintuitive point from Elastic's docs applies to both engines: in HNSW, a strict filter can make search "slower rather than faster", because the search explores more of the graph to collect enough matches.

How do the managed offerings and operations compare?

Qdrant Cloud "runs Qdrant clusters for you on AWS, GCP, or Azure". As of November 2026 its free tier is "1 node, 1 GB RAM, 4 GB disk", meant for prototypes, with no uptime SLA. Hybrid Cloud and Private Cloud run Qdrant on your own Kubernetes clusters.

Elastic Cloud Hosted gives you a deployment you size yourself, on AWS, Google Cloud Platform and Microsoft Azure. Elastic Cloud Serverless offers "no cluster management, no need to manage underlying infrastructure, no upgrades", and includes a Vector Database project type with vector-tuned defaults, where each project can store up to 1 TB of data.

Self-hosted, the footprints differ. Qdrant starts as a single container (docker run -p 6333:6333 qdrant/qdrant in the quickstart) and stores vectors in memory-mapped files, with optional RAM tiers. Scaling out is manual: Qdrant's docs say that when you self-host, "you need to create the shard replicas yourself". Elasticsearch means a JVM cluster with heap settings, shards and segment merges to manage, and for HNSW "all vector data must fit in the node’s page cache for efficient performance". If your team already runs Elasticsearch, that cost is already paid.

Should you choose Qdrant or Elasticsearch?

Choose Qdrant if:

  • Vector retrieval is the core workload, such as a RAG assistant or recommendations.
  • You want hybrid fusion, quantization and filtered HNSW without a commercial subscription.
  • Your filters are selective, such as per-user access rights on every query.
  • You want a small, focused service rather than a general platform.

Choose Elasticsearch if:

  • You already run it, so vectors become one more field instead of one more system.
  • Keyword relevance matters as much as meaning: product codes, legal text, synonyms.
  • You also need aggregations, dashboards or log search on the same data.
  • You have Enterprise, or you use Serverless and want Elastic to run the infrastructure.

Retrieval quality depends more on chunking, hybrid search and reranking than on the engine, as our guide to RAG vs fine-tuning explains. A support bot answering from a help center works on either, which is why the engine is a small part of customer support automation. Qubba builds retrieval and RAG systems on whichever store fits the data you already have, on a fixed written quote after a 30 minute call.

When should you use neither?

When you already run Postgres and your collection is modest. pgvector's tagline is "Store your vectors with the rest of your data." It supports HNSW and IVFFlat indexes, and for hybrid search its README says "Use together with Postgres full-text search", merging results with Reciprocal Rank Fusion in your application. You keep one database, one backup and one permission model.

And if the knowledge base fits in a model's prompt, or the lookup is exact, you may not need vector search at all.

Frequently asked questions

Is Qdrant faster than Elasticsearch?

Qdrant's own benchmarks, last updated in 2024, report Elasticsearch as "very slow in terms of indexing time" compared with Qdrant.
These are vendor benchmarks, and Qdrant's FAQ answers whether it is biased with "Probably, yes." Both engines have changed since, so benchmark your own data, filters and recall target.

Is Elasticsearch vector search free?

Yes, basic kNN search is.
Elastic's subscriptions page includes vector search and filtered approximate search in the free Basic tier for self-managed clusters.
The RRF and linear retrievers, DiskBBQ and the Inference API are listed under Enterprise, so hybrid search on Basic means summing keyword and vector scores and tuning boosts by hand.

Can Qdrant replace Elasticsearch?

For vector and hybrid retrieval, often yes: Qdrant has sparse vectors, BM25 on full-text indexed payload fields, filters and fusion.
It is not a replacement for Elasticsearch's analytics side, such as aggregations, Kibana dashboards and log management.
Teams that rely on those usually keep Elasticsearch and add vectors there.