Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,12 @@ module.exports = {
algolia: {
apiKey: '14805ba2eb682edb2e719df4d5e03c8a',
indexName: 'temporal',
// contextualSearch: true, // Optional, If you different version of docs etc (v1 and v2) doesn't display dup results
contextualSearch: true, // see if this matters
// appId: 'app-id', // Optional, if you run the DocSearch crawler on your own
// algoliaOptions: {}, // Optional, if provided by Algolia
searchParameters: { // used to be called algoliaOptions https://docusaurus.io/docs/search#using-algolia-docsearch
facetFilters: [],
facets: []
Comment on lines +191 to +192
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not work to clear the facetFilters field. i also tried facetFilters: null and that did not work.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somehow the legacy search page does not respect these settings, it's like contextual search is always enabled by default in this page so you can't remove the hardcoded facet filters.

But this highlighted a more important problem: your docsearch config is wrong. Fix it, and contextual search + facet filters will both work.

}
},
},
presets: [
Expand Down