Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add metadata as per https://docusaurus.io/docs/api/themes/configuration#metadata to enable doc search again
Issue
Doc search on docs.pact.io is not working
Cause
Looking the at the search request that is made from the docs pages., it doesn't return any results.
It appears to be down to the
requests.params.facetFilters
namely thedocusaurus_tag
'sThey are set to
["language:en",["docusaurus_tag:default","docusaurus_tag:docs-default-current"]]
if I rerun the request dropping the array of
docusauraus_tag
's appears to fix the request.I tried isolating either of the
docusauraus_tag
's and removing them from the array offacetFilters
to no avail.Remediation
https://v1.docusaurus.io/docs/en/search.html#extra-search-options
https://www.algolia.com/doc/api-reference/api-parameters/filters/#facet-filters
I think this issues are relevant :- TL;DR. looks out our config isn't quite right and we don't have pages marked with those tags.
facebook/docusaurus#5084 (comment)
facebook/docusaurus#3805
Looks like we made need to add some meta tags to the docs site - as they are not currently embedded in the site
<meta name="docsearch:docusaurus_tag" content="docs-default-current">
Hope this might work - we can add via the docusaurus config, metadata - see here