# Fumadocs (Framework Mode, Waku): Search
URL: /docs/waku/search
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/(framework)/[framework]/search/index.mdx

Implement document search in your docs

## Search UI [#search-ui]

See [Search UI](/docs/ui/search) to learn how to customize the UI of document search.

## Search Client [#search-client]

You can choose & configure the search client according to your search engine, it defaults to ZBSearch.

- [ZBSearch (default)](/docs/waku/search/orama): The default search engine powered by ZBSearch.
- [Algolia](/docs/waku/search/algolia): Using Algolia with Fumadocs UI.
- [FlexSearch](/docs/waku/search/flexsearch): A fast & minimal search engine.
- [Meilisearch](/docs/waku/search/meilisearch): Using Meilisearch with Fumadocs UI.
- [Mixedbread](/docs/waku/search/mixedbread): Using Mixedbread with Fumadocs UI.
- [Orama Cloud](/docs/waku/search/orama-cloud): Using Orama Cloud with Fumadocs UI.
- [Typesense](/docs/waku/search/typesense): Using Typesense with Fumadocs UI.
- [Custom Search](/docs/waku/search/custom): For other search solutions.

### Search Hooks [#search-hooks]

Search clients come with React hooks, like `useFetchSearch()` and `useAlgoliaSearch()`, returning the props of `<SearchDialog />`:

```tsx
import { useFetchSearch } from 'fumadocs-core/search/client';

const search = useFetchSearch();

<SearchDialog {...search} {...props} />;
```

Along with `search` and `onSearchChange` for the search input, they return:

- `data`: the last successful search, kept while searching again and after an error.
  - `items`: its results, with their content also parsed as [hast](https://github.com/syntax-tree/hast) as `hastContent`. The rows of a table are grouped into a `table` item.
  - `query`: the query it searched for.
- `error`: set when the last search failed.
- `isLoading`: whether a search for `search` is pending.

For other search engines, pass a memoized search function to `experimental_useSearch()`, it searches again when the function changes.

```tsx
'use client';
import { useCallback } from 'react';
import { experimental_useSearch } from 'fumadocs-core/search/client';
import type { SortedResult } from 'fumadocs-core/search';

export function useMySearch(locale: string) {
  const search = useCallback(
    async (query: string): Promise<SortedResult[]> => {
      const res = await fetch(`/api/my-search?${new URLSearchParams({ query, locale })}`);
      return res.json();
    },
    [locale],
  );

  return experimental_useSearch(search);
}
```

### Community Integrations [#community-integrations]

A list of integrations maintained by community.

- [Trieve Search](/docs/headless/search/trieve)
- [Typesense Search](/docs/headless/search/typesense)