You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To accommodate for multiple searches (i.e. one for docs, one for tutorials), we'll need a way to filter a search query's results to only include one particular source.
Proposed Solution
Update Algolia docsearch Config File
Filter by Tags in Search Component
1. Update Algolia docsearch Config File
Our current config file currently includes an entry point for each project's doc section, each with a tags property:
With tutorials added, it may be good to add a docs tag to each relevant docs url, and a tuts or tutorials tag to each relevant project's tutorials url:
Issue at Hand
To accommodate for multiple searches (i.e. one for docs, one for tutorials), we'll need a way to filter a search query's results to only include one particular source.
Proposed Solution
1. Update Algolia docsearch Config File
Our current config file currently includes an entry point for each project's doc section, each with a
tags
property:With tutorials added, it may be good to add a
docs
tag to each relevant docs url, and atuts
ortutorials
tag to each relevant project's tutorials url:2. Filter by Tags in Search Component
Algolia's
docsearch
accepts analgoliaOptions
object which you can learn more about here. It accepts these API parameters.Ideally, the filters should be
Search
component props, but in it's simplest form, this could look something like:The text was updated successfully, but these errors were encountered: