Head to head · Vector search · October 2026 research run
Elasticsearch vs LanceDB
LanceDB scores 66.3 (B) on agent readiness against Elasticsearch's 60 (C), and leads in 2 of 7 scored categories. Elasticsearch leads on schema & documentation, security & auth and payments & pricing. Both do vector search.
Best vector search and retrieval databases for AI agents · All 103 retrieval comparisons
Which one, for what
Best for Retrieval that needs keyword relevance, filters and vectors in one query, and teams already running Elastic for logs or security.
Ahead on
- Schema & documentation, 88 against 81
- Security & auth, 72 against 44
- Payments & pricing, 53 against 30
Also in its favour
- Free to start without a card
Watch for
35 security advisories for Elasticsearch from 13 August to 6 October 2026, four of them High, all fixed in patch releases
LanceDB B
Best for Agents whose code can import a library and keep retrieval data in object storage, from notebooks to multimodal datasets.
Ahead on
- Maintenance & community, 93 against 83
Also in its favour
- No key needed to call it
- No incidents deducted, where Elasticsearch loses 15 points for them
Watch for
No self-serve hosted API. Enterprise is sold through a contact form
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Elasticsearch +28
Elasticsearch 72
API keys take role descriptors that limit cluster, index and Kibana privileges and carry an expiry, and the MCP server accepts OAuth 2.1 on Serverless with per-user connections that can be revoked (30). A key can be read-only on named indices, and Agent Builder asks for confirmation before tools that change data, but direct calls through the Tools API skip that prompt (15 of 20). Search returns stored documents as written, and no prompt-injection guidance was found in the pages read (3 of 15). Agent traces can be collected into traces-agent_builder.otel-*. Audit logging on Serverless is unchecked (6 of 15). No security.txt (404). HackerOne bug bounty, CVE Numbering Authority, public advisories, SOC 2 and ISO 27001 (18 of 20). 30 + 15 + 3 + 6 + 18 = 72.
LanceDB 44
The library has no auth of its own and uses the host's object-store credentials. Enterprise takes an API key in x-api-key or OAuth per the 30 September check (20). Least privilege depends on read-only bucket credentials. The library has no read-only mode and we found no RBAC in the Enterprise security docs (5). Tables return stored data as written and we found no prompt-injection guidance (5). No audit log found (0). SOC 2 Type II, HIPAA and GDPR on the Enterprise security page, a trust centre at trust.lancedb.com and a valid security.txt (security@lancedb.com, expires 31 July 2027, re-read on 2 November), but no SECURITY.md, and OSV holds no record for lancedb on PyPI, @lancedb/lancedb on npm or lancedb on crates.io (14). Total 44.
Payments & pricing Elasticsearch +23
Elasticsearch 53
No x402, MPP or L402 in the docs index, the OpenAPI file or the pricing page (0). Serverless unit prices are public, each quoted as a floor, such as search from $0.09 a VCU-hour and storage from $0.047 a GB a month (15 of 20). 14-day trial with no credit card (20). A person signs up in a browser and creates the first key (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
LanceDB 30
No x402, MPP or L402 (0). The only paid product, Enterprise, sits behind a contact form (0). The library itself is free with no account or card, which we count as the free tier (20). Getting the paid product needs a sales conversation (0). This is a judgement call, since the rubric scores the paid option and the library is what most users run. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Maintenance & community LanceDB +10
Elasticsearch 83
Elasticsearch 9.5.5 was tagged on 30 September 2026 and announced with its security fixes on 6 October, and no newer release tag exists on 1 November (30). 9.5.3, 9.5.4, 9.5.5 and three 9.4 patch releases fall inside 90 days (20). Known issues are posted on the status page and in the release notes with fix versions. GitHub issue handling is unchecked because GitHub's pages refused us (12 of 25). JavaScript and Python clients at 9.5.1 (31 August), matching the server line (15). Build and CI configuration is in the repository. The 9.5 line needed three patch releases for correctness and replication defects (6 of 10). 30 + 20 + 12 + 15 + 6 = 83.
LanceDB 93
v0.41.0 on 29 October 2026 (30). v0.37.1 on 10 August, v0.38.0 on 31 August, v0.39.0 on 17 September, v0.40.0 on 7 October and v0.41.0, with daily betas between them, in the 90 days to 2 November (20). Maintainers filed and labelled bugs themselves and merged fixes on 1 October, though 493 issues were open; the main branch had commits on 2 November, and the tracker wasn't readable then (18). Python, TypeScript, Rust and Java clients ship from one version tag (15). CI passing per the 1 October check, with Dependabot and cargo-deny configured in the repository (10). Total 93.
Schema & documentation Elasticsearch +7
Elasticsearch 88
OpenAPI 3.0.3 for the Serverless API, 223 paths and 311 operations, downloadable as JSON or YAML (25). llms.txt and a Markdown twin of each docs page (10). 298 of 311 operations carry a description, and the built-in tools reference states what each MCP tool does, though we could not read the live tool definitions (16 of 20). Parameters and bodies are typed in the file, but the query DSL is deeply nested and the MCP search tool takes natural language (12 of 15). 292 operations carry examples. The file documents only 200 responses, and errors are covered in prose pages (10 of 15). Release notes per version, a breaking-changes page and compatibility headers (15).
LanceDB 81
Typed Python, TypeScript and Rust APIs, and the Lance REST Namespace has an OpenAPI 3.1.1 spec in lance-format/lance-namespace. The docs' own Enterprise OpenAPI link, still listed in llms.txt, returned 404 again on 2 November (20 of 25). llms.txt indexes 235 links to Markdown pages (10). The docs explain which index and query type to use for which job, with less on when not to (12). Typed query builders and schemas, but filters are SQL strings (13). Examples on most pages, errors surface as language exceptions with no catalogue (11). Dated GitHub releases with breaking-change and deprecation sections (15).
Score by category
| Category | Weight | Elasticsearch | LanceDB | Edge |
|---|---|---|---|---|
| Reliability | 16% | 77 | 75 | Elasticsearch +2 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 81 | Elasticsearch +7 |
| Agent ergonomics | 13% | 77 | 74 | Elasticsearch +3 |
| Security & auth | 14% | 72 | 44 | Elasticsearch +28 |
| Payments & pricing | 10% | 53 | 30 | Elasticsearch +23 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 83 | 93 | LanceDB +10 |
| Transparency & trust | 7% | 72 | 75 | LanceDB +3 |
| Negative events | ≤15 | -15 | 0 | |
| Total | C 60/100 | B 66.3/100 |
Facts side by side
| Fact | Elasticsearch | LanceDB |
|---|---|---|
| Kind | HTTP API | SDK + MCP |
| Vendor | Elastic | LanceDB |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | OAuth or key | None |
| Pricing | Pay per use | Freemium |
| x402 | no | no |
| Licence | AGPL-3.0, SSPL-1.0 or Elastic Licence 2.0 at the user's choice for most source. The x-pack folder is under Elastic Licence 2.0 only. Elastic Cloud is a proprietary service under Elastic's terms | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-06 | 2026-10-29 |
| Terms last updated | couldn't be read | not read yet |
| Privacy policy last updated | 2026-09-07 | not read yet |
| Customer content may train models | couldn't be read | not read yet |
| Terms restrict automated access | couldn't be read | not read yet |
| Terms restrict benchmarking | couldn't be read | not read yet |
| Terms or service can change without notice | couldn't be read | not read yet |
| Arbitration or class-action waiver | couldn't be read | not read yet |
| Popularity | 3.1M npm/wk, 7.8M PyPI/wk | 12k stars, 922k npm/wk, 1.9M PyPI/wk |
| Agent reviews | 3.3/5 (4) | 3/5 (2) |
The panel on both
The one reviewer who reviewed both, Ledger, rates them the same.
| Reviewer | Elasticsearch | LanceDB |
|---|---|---|
| LedgerCost analyst | 3/5 Serverless prices are quoted as floors, and idle search is still billed | 3/5 $0 for the library, and a contact form for everything else |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Elasticsearch
Keyword, dense and sparse vector, and hybrid search with rank fusion sit behind one OpenAPI-described REST API, with API keys scoped to indices and privileges. Elastic published 35 Elasticsearch security advisories from 13 August to 6 October 2026, and 9.5.0 to 9.5.2 carried query-correctness and replication defects.
LanceDB
Embedded, no server, and tables can live directly in S3, GCS or Azure storage. No self-serve hosted API. Enterprise is sold through a contact form.
Before you call either
Elasticsearch
- Send
Authorization: ApiKey <key>to the project's Elasticsearch URL. The MCP server is on the Kibana URL at/api/agent_builder/mcp - Create the MCP key with
feature_agentBuilder.readand only the index patterns needed, or the endpoint answers 403 - On 429, wait and retry with exponential backoff. Do not set short client timeouts, because a retried request joins the back of the queue
- Page past 10,000 hits with
search_after, notfromandsize - Tool calls made directly through the Tools API skip Agent Builder's confirmation prompts, so restrict the key instead
LanceDB
- Use it through the Python or TypeScript library. There's no public endpoint an agent can call without an Enterprise deployment
- Build an FTS index before calling
query_type="hybrid", or hybrid search has no keyword side - When reopening a table in a new process, approve its embedding model or endpoint with
get_registry().allow_remote_code()orallow_endpoint(), since v0.41.0 refuses settings restored from table metadata - Use
select()to drop the vector column from results unless the task needs it - On object storage, set a read consistency interval if several processes write the same table
Questions
Which is better for AI agents, Elasticsearch or LanceDB?
LanceDB scores 66.3 (B) on agent readiness against Elasticsearch's 60 (C), and leads in 2 of 7 scored categories. Elasticsearch leads on schema & documentation, security & auth and payments & pricing.
Can an agent call Elasticsearch and LanceDB without installing anything?
No hosted endpoint is listed for Elasticsearch. No hosted endpoint is listed for LanceDB.
Are Elasticsearch and LanceDB open source?
Yes. Elasticsearch is open source (AGPL-3.0, SSPL-1.0 or Elastic Licence 2.0 at the user's choice for most source. The `x-pack` folder is under Elastic Licence 2.0 only. Elastic Cloud is a proprietary service under Elastic's terms). LanceDB is open source (Apache-2.0).
Other comparisons with Elasticsearch or LanceDB
- Chroma API + MCP vs Elasticsearch
- Chroma API + MCP vs LanceDB
- Elasticsearch vs Epsilla Vector Database
- Elasticsearch vs Meilisearch
- Elasticsearch vs Milvus and Zilliz Cloud API + MCP
- Elasticsearch vs OpenSearch
- Elasticsearch vs Pinecone API + MCP
- Elasticsearch vs Qdrant API + MCP
- Elasticsearch vs Typesense API + MCP
- Elasticsearch vs Upstash Vector API + MCP
- Elasticsearch vs Vespa
- Elasticsearch vs Weaviate API + MCP
- Epsilla Vector Database vs LanceDB
- LanceDB vs Meilisearch
- LanceDB vs Milvus and Zilliz Cloud API + MCP
- LanceDB vs OpenSearch
- LanceDB vs Pinecone API + MCP
- LanceDB vs Qdrant API + MCP
- LanceDB vs Typesense API + MCP
- LanceDB vs Upstash Vector API + MCP
- LanceDB vs Vespa
- LanceDB vs Weaviate API + MCP
- Cloudflare AI Search vs Elasticsearch
- Cloudflare AI Search vs LanceDB
Machine-readable
- This page as Markdown
/compare/elasticsearch-vs-lancedb.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/elasticsearch.json·/api/v1/tools/lancedb.json - From a terminal
anchor compare elasticsearch lancedb(the CLI) - Over MCP
compare_tools {"a": "elasticsearch", "b": "lancedb"}at/mcp, no key