# Search inside one tenant, user or metadata slice

> Search inside one tenant, user or metadata slice: 4 companies fully do it, 10 with a limit, 17 carry the tag. Every listing in Retrieval & vector search with the reason and a source.

- Canonical: https://www.anchorterminal.com/niches/vector-search.filtered-tenant/
- Markdown: https://www.anchorterminal.com/niches/vector-search.filtered-tenant/index.md (~1,400 tokens)
- Slim: https://www.anchorterminal.com/niches/vector-search.filtered-tenant/index.min.md (~330 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/niches/vector-search.filtered-tenant/index.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-15

Four or more companies' docs show a full fit.

| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |
| --- | --- | --- | --- | --- |
| 4 | 10 | 17 | 16 | 9 |

## What counts as done

Every result matches the filter, the result count equals the requested k when k matches exist, and no other tenant's records appear.

Measured, for our own tests: p95 latency with a filter matching 1 per cent of records is within twice the unfiltered p95.

How agents ask for it: search only this customer's documents; results from 2025 only; only from the HR folder; this user's memories

## Does the job

The docs show it meets the test above, and nothing we read says otherwise.

- **Meilisearch (Meili SAS)**: Results are first filtered, then ranked within the filtered set, and tenant tokens restrict each user's searches to their own records.
- **Milvus and Zilliz Cloud API + MCP (Zilliz Inc.)**: Filtered search applies metadata filtering before the ANN search, so limit comes from matching entities, and multi-tenancy is offered at database, collection, partition or partition-key level.
- **Pinecone API + MCP (Pinecone Systems Inc.)**: The optional filter narrows candidates before ranking, so top_k comes from matching documents, and namespaces separate tenants in one index.
- **Vespa (Vespa.ai AS)**: nearestNeighbor combines with query filters and Vespa chooses pre- or post-filtering, and streaming mode searches one user's or tenant's subset without a shared index.

## Does the job, with a limit

It does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.

- **Chroma API + MCP (Chroma Inc.)**: Metadata where filters and tenant and database scoping exist, but #4089 reports where filters breaking queries over 20 million chunks on a Docker server, and pre- versus post-filtering is not stated on the pages read.
- **Cloudflare AI Search (Cloudflare, Inc.)**: Metadata filters apply before retrieval, and namespaces and folders separate content, but filters match only the first 64 bytes of a string, and no latency figure for selective filters is given.
- **Elasticsearch (Elasticsearch B.V.)**: A filter inside the knn clause is applied during approximate search so k matching documents return, but #162043 found a nested-field pre-filter returning nothing, the use case's named blocker; it is now closed.
- **Epsilla Vector Database (Epsilla, Inc.)**: query takes a boolean filter expression, but the docs do not say whether it applies before or after ranking, and no tenant or namespace feature was found.
- **LanceDB (LanceDB Systems, Inc.)**: where(..., prefilter=True) filters before the vector search, but #3095 found prefilter inverted on hybrid queries (now closed as fixed), and tenant separation means separate tables.
- **OpenSearch (OpenSearch Software Foundation, a project of The Linux Foundation)**: Efficient k-NN filtering applies the filter during the vector search so k results return (Lucene HNSW, Faiss HNSW and IVF), but #203 (open) shows the MCP server ignoring filters in multi mode.
- **Qdrant API + MCP (Qdrant Solutions GmbH)**: Filters apply inside the HNSW search via payload indexes, with ACORN for strict filters and is_tenant partitioning, but #7211 reports recall dropping with multitenancy and #7210 high filtered latency at 4.6M points.
- **Typesense API + MCP (Typesense, Inc.)**: filter_by applies during the vector search and scoped search keys can embed a tenant filter, but #3159 shows a broad filter with a small intersection taking seconds, well past the twice-unfiltered latency bar.
- **Upstash Vector API + MCP (Upstash, Inc.)**: Namespaces separate tenants, but filtering is in-filtering within a budget that falls back to post-filtering, and the docs say highly selective filters may return fewer than topK results.
- **Weaviate API + MCP (Weaviate B.V.)**: Multi-tenancy stores each tenant on its own shard, invisible to others, and filters run with ACORN, but #7681 reports hybrid filters not acting as strict pre-filters.

## What stops agents finishing

- filter applied after ranking so fewer than k results come back
- filter ignored in one tool mode
- nested-field filter returns nothing without an error

## Around it

Before: agent-auth.resolve-user. After: vector-search.rag-over-docs.

## Where this comes from

Weight 16 of 100 in Retrieval & vector search: 9 of 37 accounts, almost all failures (filters ignored, post-filtered, inverted, slow or returning nothing); weighted for how often filters decide correctness

As data: https://www.anchorterminal.com/api/v1/use-cases/vector-search.filtered-tenant.json, or the MCP tool get_use_case with id vector-search.filtered-tenant. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
