DocSearch accepts configuration options through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/algolia/docsearch/llms.txt
Use this file to discover all available pages before exploring further.
DocSearchProps interface. Pass these options to the DocSearch component to customize its behavior.
Required Options
Algolia application ID used by the search client.
Public API key with search permissions for the index.
Name of the Algolia index to query.Deprecated: Use
indices property instead. This will be removed in a future version.List of indices and optional search parameters to be used for search. Each item can be:
- A string (index name)
- A
DocSearchIndexobject withnameand optionalsearchParameters
DocSearchIndex Interface
DocSearchIndex Interface
Ask AI Configuration
Configuration to enable Ask AI mode. Pass a string assistant ID or a full config object.
DocSearchAskAi Interface
DocSearchAskAi Interface
Intercept Ask AI requests (e.g., submitting a prompt or selecting a suggested question).Return
true to prevent the default modal Ask AI flow (no toggle, no sendMessage). Useful to route Ask AI into a different UI (e.g., sidepanel) without flicker.Search Customization
Placeholder text for the search input.
Additional Algolia search parameters to merge into each query.Deprecated: Use
indices property instead. This will be removed in a future version.Maximum number of hits to display per source/group.
Hook to post-process hits before rendering. Useful for filtering, sorting, or modifying search results.
Hook to wrap or modify the Algolia search client. Useful for adding custom headers, logging, or modifying requests.
Custom Components
Custom component to render an individual hit. Supports multiple template patterns:
- HTML strings with html helper:
(props, { html }) => html\…“ - JSX templates:
(props) => <div>...</div> - Function-based templates
Custom component rendered at the bottom of the results panel. Supports the same template patterns as
hitComponent.User Personalization
Disable storage and usage of recent and favorite searches.
Limit of how many recent searches should be saved and displayed.
Limit of how many recent searches should be saved and displayed when there are favorited searches.
Navigation & Behavior
Query string to prefill when opening the modal.
Custom navigator for controlling link navigation. Useful for integrating with client-side routers.
Builds a URL to report missing results for a given query.
Configuration for keyboard shortcuts. Allows enabling/disabling specific shortcuts.
Theming & Display
Theme overrides applied to the modal and related components. Accepts
'dark' or 'light'.See Theme Options for more details.Localized strings for the button and modal UI.See Translations for all available translation strings.
The container element where the modal should be portaled to. Defaults to
document.body.Analytics
Insights client integration options to send analytics events.
