Conversation
| facetFilters: [], | ||
| facets: [] |
There was a problem hiding this comment.
this does not work to clear the facetFilters field. i also tried facetFilters: null and that did not work.
There was a problem hiding this comment.
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.
|
hi, It looks like your DocSearch config has diverged quite a lot from the regular Docusaurus 2 docsearch config:
In particular, your config does not permit Algolia to index the facetting fields such as When we released Contextual Search, I think Algolia run a batch update of all the Docusaurus 2 configs to add those new fields, but maybe it didn't update your config for some reason? |
|
It indeed seems like this one hasn't been updated @slorber. I've opened a PR here algolia/docsearch-configs#3986, which will allow you to use the Contextual Search @sw-yx |
|
oh awesome, thanks so much both of you! |
What was changed:
changed algolia search config
Why?
our search page always returns blank right now. we think its because as of this PR
#327 (When we upgraded Docusaurus from alpha 66 to alpha 72)
the search has started to send in default facets
["language","docusaurus_tag"]and facetFilters[["language:en"],["docusaurus_tag:default","docusaurus_tag:docs-default-current"]]"}where it didn't use to before (internal notes: https://www.notion.so/temporalio/debug-search-8213484654214fb784952d0e5d474501)as far as I can tell this is undocumented and i'm not sure it is intentional behavior (cc @slorber in case this was supposed to be documented)
How was this tested:
testing in deploy preview:
https://deploy-preview-357--mystifying-fermi-1bc096.netlify.app/search/?q=workflow