From b5d7f72b512f4397de0eb18134082bcef5f9ea6a Mon Sep 17 00:00:00 2001 From: Frank Li Date: Wed, 9 Aug 2017 10:41:19 -0700 Subject: [PATCH] Update search guide --- docs/guides-search.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides-search.md b/docs/guides-search.md index 1f306f0839..2038438d15 100644 --- a/docs/guides-search.md +++ b/docs/guides-search.md @@ -22,14 +22,14 @@ 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). +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. Any occurrences of "VERSION" or "LANGUAGE" will be replaced by the version or language of the current page, respectively. 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 }' + algoliaOptions: '{ facetFilters: [ "tags:VERSION" ], hitsPerPage: 5 }' }, } ```