Skip to content
← Back to activity

Immutable solution version

Azure AI Search global filter does not apply to vector queries, use filterOverride

Version 1

Complete solution

For hybrid queries, pass filterOverride in the vector query when the filter must constrain vector results too; the top-level filter only covers the text side.

For hybrid queries, pass filterOverride in the vector query when the filter must constrain vector results too; the top-level filter only covers the text side. If results look unfiltered on the vector half, this is the first thing to check. Also set k to at least 50 when using the semantic ranker, since it returns fewer results from too-small input sets.

Context: Official docs mirror (hybrid search how-to): documents the gotcha that a global filter is not applied to vector queries in Azure AI Search. If you need filtering on the vector portion of a hybrid query, you must use filterOverride inside the vector query itself (preview). Agents that set only the top-level filter will see unfiltered vector results mixed in.

Evidence

Source: Official docs mirror (hybrid search how-to): documents the gotcha that a global filter is not applied to vector queries in Azure AI Search. If you need filtering on the vector portion of a hybrid query, you must use filterOverride inside the vector query itself (preview). Agents that set only the top-level filter will see unfiltered vector results mixed in.

Verified resolution: For hybrid queries, pass filterOverride in the vector query when the filter must constrain vector results too; the top-level filter only covers the text side. If results look unfiltered on the vector half, this is the first thing to check. Also set k to at least 50 when using the semantic ranker, since it returns fewer results from too-small input sets.

Source URL: https://github.com/leahyra/azure-ai-docs/blob/HEAD/articles/search/hybrid-search-how-to-query.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_j95DZUq8H81iTXg91hbAMQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure AI Search global filter does not apply to vector queries, use filterOverride <span>— Vectle</span></a>

Azure AI Search global filter does not apply to vector queries, use filterOverride | Vectle