# Searching Content at Scale

> Source: https://agilitycms.com/docs/overview/searching-content-at-scale

Visitors expect to find what they're looking for in a single search. With a small amount of content, you can build a basic search on the [Content Fetch API](/docs/developers/content-fetch-api) by filtering content lists. Once you have hundreds of pages, several content types or several languages, you need a **search index**: a copy of your content stored in a form built for fast, relevant search, with typo tolerance, ranking, highlighting and facets.

Agility doesn't lock you into a search engine. You can use **any** search provider, because every provider is fed the same way.

## How search works with Agility

1. Editors publish in Agility as usual.
2. Agility sends a [webhook](/docs/developers/webhooks) to your application each time content is published, unpublished or deleted.
3. Your application fetches the published content from the Fetch API and sends it to your search provider's index.
4. Your website or app queries the search provider directly, or through a small API route of its own.

![Agility sends a signed webhook to your endpoint, which re-fetches published content from the Fetch API and upserts or deletes records in your search index. A nightly reindex walks the Sync API with the same code. Your site queries the search index.](https://cdn.aglty.io/agility-cms-docs/images/developer/docs-diagram-search-indexing-pipeline.svg)

A scheduled full reindex backs this up, catching anything a webhook missed. [Indexing Agility Content for Search](/docs/developers/indexing-content-for-search) walks through the whole pattern, with code, and it's the same for every provider.

## Choosing a provider

| | [Algolia](/docs/developers/algolia) | [Azure AI Search](/docs/developers/azure-ai-search) | [Elastic](/docs/developers/elastic) | [Coveo](/docs/developers/coveo) |
| --- | --- | --- | --- | --- |
| **Best for** | Fast setup and polished search-as-you-type | Teams already on Azure | Full control, and complex or very large indexes | Enterprise relevance and personalization |
| **Hosting** | Hosted | Azure | Serverless, Elastic Cloud or self-managed | Hosted |
| **Getting started** | Free plan | Free tier; Basic for production | Serverless, usage-based | Sales-led; trial available |
| **Front-end UI** | InstantSearch (React, Vue, JS) | Build your own | Search UI, or build your own | Atomic and Headless |
| **Semantic and hybrid search** | NeuralSearch (Elevate plan) | Built in (semantic ranker, vectors) | Built in (`semantic_text`, hybrid retrievers) | Built in |
| **AI assistants** | Agent Studio | Knowledge bases, with an MCP endpoint | Agent Builder, with an MCP endpoint | Relevance Generative Answering, Passage Retrieval API |

A few rules of thumb:

- **Just need great site search, quickly?** Start with Algolia. It has the most complete ready-made UI and a free plan to build on.
- **Your organization runs on Microsoft Azure?** Azure AI Search keeps search inside your existing subscription, identity and compliance setup.
- **Need to own the engine**, with custom analyzers, very large indexes, logs and search in one place, or self-hosting? Choose Elastic.
- **Search is a revenue channel** that needs personalization, merchandising and analytics across several sources? Coveo is built for that.

## Search for AI assistants

A search index is also what an AI assistant or chatbot needs in order to answer from your content rather than guess. The same webhook pipeline that powers site search can keep an assistant's knowledge current. Each provider guide covers its AI options, and [Indexing Agility Content for Search](/docs/developers/indexing-content-for-search#chunking-for-semantic-search-and-ai-assistants) explains how to split long content into passages for better answers.

If you want AI tools to work with your Agility content directly, rather than through your website's search, see the [Agility MCP server](/docs/ai).

## Other providers

The pattern works with any provider that accepts documents over an API, including [Typesense](https://typesense.org), [Meilisearch](https://www.meilisearch.com) and [Amazon OpenSearch Service](https://aws.amazon.com/opensearch-service/). Follow [Indexing Agility Content for Search](/docs/developers/indexing-content-for-search), and replace the three provider calls — add or replace a document, delete a document, and bulk add — with your provider's SDK.

---

## Related pages

- [Building a Content Hub](https://agilitycms.com/docs/overview/building-a-content-hub.md)
- [Building a Website](https://agilitycms.com/docs/overview/building-a-website.md)
- [Publishing to Multiple Destinations](https://agilitycms.com/docs/overview/publishing-to-multiple-destinations.md)
- [Using Agility for Multiple Sites](https://agilitycms.com/docs/overview/using-agility-cms-for-multiple-sites.md)
- [Building a Headless Ecommerce Website](https://agilitycms.com/docs/overview/build-a-headless-ecommerce-website.md)
- [Integrating Agility into a Traditional Website](https://agilitycms.com/docs/overview/integration-agility-cms-into-a-traditional-website.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
