Search modes
Last updated Oct 1, 2026 AI Search supports three search modes: vector, keyword, and hybrid. New instances use hybrid search by default.
To opt out, set index_method to { vector: true, keyword: false }. Refer to Hybrid search for configuration details.
Vector search
Vector search converts your query into a vector embedding and finds chunks with similar meaning, even when the exact words differ. It knows that "deployment guide" and "how to ship my app" mean similar things. However, it can lose specifics. In a query like "ERR_CONNECTION_REFUSED timeout," vector search captures the broad concept of connection failures but might not surface the page that contains that exact error string.
Keyword search
Keyword search matches chunks that contain your query terms exactly using BM25 full-text search. When you search "ERR_CONNECTION_REFUSED timeout," BM25 finds documents that actually contain "ERR_CONNECTION_REFUSED" as a term. However, it may miss a page about "troubleshooting network connections" that describes the same problem. Refer to Keyword search for setup.
Hybrid search
Hybrid search runs vector and keyword search in parallel and merges the results using a fusion method. Vector search understands intent, keyword search matches specific terms. Together, a query like "ERR_CONNECTION_REFUSED timeout" finds the exact error page and related troubleshooting content. Refer to Hybrid search for setup.

Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai-search/concepts/search-modes/#page","headline":"Search modes","description":"Compare AI Search vector, keyword, and hybrid search modes to choose the right retrieval strategy.","url":"https://developers.cloudflare.com/ai-search/concepts/search-modes/","inLanguage":"en","image":"https://developers.cloudflare.com/ai-search/concepts/search-modes/og.png?v=64c49a380e4de034","dateModified":"2026-10-01","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Manage AI Search instances and sync jobs over HTTP using the Instances REST API. title: REST API image: https://developers.cloudflare.com/ai-search/api/instances/rest-api/og.png?v=2130d71799ac2da7
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ai-search/llms.txt
Use this file to discover all available pages before exploring further.
