---
title: AI Search path filtering for website and R2 data sources
description: Control which paths to include or exclude from indexing.
image: https://developers.cloudflare.com/changelog-preview.png
---

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://developers.cloudflare.com/changelog/rss/index.xml) [ View RSS feeds ](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://developers.cloudflare.com/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://developers.cloudflare.com/changelog/) 

## AI Search path filtering for website and R2 data sources

Jan 20, 2026 

[ AI Search ](https://developers.cloudflare.com/ai-search/) 

[AI Search](https://developers.cloudflare.com/ai-search/) now includes [path filtering](https://developers.cloudflare.com/ai-search/configuration/indexing/path-filtering/) for both [website](https://developers.cloudflare.com/ai-search/configuration/data-source/website/#path-filtering) and [R2](https://developers.cloudflare.com/ai-search/configuration/data-source/r2/#path-filtering) data sources. You can now control which content gets indexed by defining include and exclude rules for paths.

By controlling what gets indexed, you can improve the relevance and quality of your search results. You can also use path filtering to split a single data source across multiple AI Search instances for specialized search experiences.

![Path filtering configuration in AI Search](https://developers.cloudflare.com/_astro/path-filtering.BCH7HN-Q_vEVaf.webp) 

Path filtering uses [micromatch ↗](https://github.com/micromatch/micromatch) patterns, so you can use `*` to match within a directory and `**` to match across directories.

| Use case                        | Include        | Exclude               |
| ------------------------------- | -------------- | --------------------- |
| Index docs but skip drafts      | \*\*/docs/\*\* | \*\*/docs/drafts/\*\* |
| Keep admin pages out of results | —              | \*\*/admin/\*\*       |
| Index only English content      | \*\*/en/\*\*   | —                     |

Configure path filters when creating a new instance or update them anytime from **Settings**. Check out [path filtering](https://developers.cloudflare.com/ai-search/configuration/indexing/path-filtering/) to learn more.