-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: searchRelated to the search feature, usually AlgoliaRelated to the search feature, usually Algolia
Description
🐛 Bug Report
Use some algolia config like:
algolia: {
apiKey: '47ecd3b21be71c5822571b9f59e52544',
indexName: 'docusaurus-2',
contextualSearch: true,
searchParameters: {facetFilters: ['bad:filter']},
},
Due to the presence of bad:filter, it should actually never find any result.
But the current search page does not respect the plugin configuration options.
We should rather make the search page results consistent with the navbar search input / modal results, and use the plugin options.
Edit: if contextual search is not enable, we should not append any facet filter to the query by default, to prevent issues such as #4644
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: searchRelated to the search feature, usually AlgoliaRelated to the search feature, usually Algolia