Placeholder Text
Customize the search input placeholder text to guide users:- Default: Uses your custom
placeholderprop or “Search docs” - Ask AI enabled: Changes to “Search docs or ask AI a question”
- In Ask AI mode: Shows “Ask another question…”
Transform Items
ThetransformItems function allows you to modify search results before they’re displayed. This is useful for filtering, sorting, or enhancing results.
Common Use Cases
Filter results by version
Filter results by version
Sort results by custom priority
Sort results by custom priority
Add custom metadata to results
Add custom metadata to results
Maximum Results Per Group
Control how many results are displayed per section:The default value is determined by the Algolia search configuration. Setting this value will override the default behavior.
Custom Hit Component
Customize how individual search results are rendered:Using HTML Template Syntax
You can also use HTML template strings:Results Footer Component
Add custom content at the bottom of search results:Search Parameters
Pass additional Algolia search parameters to customize the search behavior:Multiple Indices
Search across multiple documentation indices:Transform Search Client
Modify the Algolia search client before it’s used:Initial Query
Pre-fill the search input with an initial query:Custom Navigator
Control navigation behavior when users select search results:Missing Results URL
Provide a feedback mechanism for queries with no results:Portal Container
Specify where the search modal should be rendered in the DOM:By default, the modal is rendered into
document.body.