diff --git a/docs/guides-search.md b/docs/guides-search.md index 33f18976dc..1f306f0839 100644 --- a/docs/guides-search.md +++ b/docs/guides-search.md @@ -20,6 +20,20 @@ const siteConfig = { } ``` +### Extra Search Options + +You can also specify extra [search options used by Algolia](https://community.algolia.com/docsearch/documentation/) by using an `algoliaOptions` field in `algolia`. This may be useful if you want to provide different search results for the different versions or languages of your docs. More details about search options can be [found here](https://www.algolia.com/doc/api-reference/api-parameters/#overview). + +```js +const siteConfig = { + ... + algolia: { + ... + algoliaOptions: '{ facetFilters: [ "tags:0.47" ], hitsPerPage: 5 }' + }, +} +``` + ### Controlling the Location of the Search Bar By default, the search bar will be the rightmost element in the top navigation bar.