Is the search on the guides broken for anyone else...
# support
c
Is the search on the guides broken for anyone else?
1
e
Yes, for me too
👍🏼 1
c
Maybe the index needs to be rebuilt, I don’t seem to get any results no matter what I type
k
Maybe since we added versioning ?
💡 1
c
@kennyadsl Good call! It looks like the search works on
Next
but not 3.3 or 3.2!!!
k
c
If I am reading this correctly, we need to add a
custom_settings
with the attributes for faceting here https://github.com/solidusio/edgeguides/blob/main/docusaurus.config.js#L146 🤔
It looks like we have the meta fields configured for language, version and docusaurus_tag
I am a bit confused, because reading through the docs here, it seems like this should just work https://docusaurus.io/docs/search#contextual-search
I’d be curious if we force a re-crawl if it would just work 🤔 Though I see that the requests we send to Algolia only include the tags, not the versions. This is the search request on version 3.3 (no results) and the search on Next (returns results)
e
I sent a PR with the quickest fix suggested by the article posted by @kennyadsl, the search should now be working with results always pointing to the current release @Chris Todorov can you confirm it works for you as well?
c
Hey @elia, the search now works on every version but the results always take you to the pages for version 3.3. I think this is better than before, while we figure out the long term fix. I might have some time this week to play around with it, but for some reason I am not getting cloudflare builds on draft PRs (see here). Having that would be helpful in debugging this
e
@Chris Todorov agree, alas cloudflare pages doesn’t support that 😞 so for now we’ll need to test locally… but for the simple change I did the results were already popping up on the development server, so maybe that will be the case also for more complex configurations… The alternative is pushing to branches on the original repo and create PRs from there, but long term we would still need a better solution
👍🏼 1
c
I can try to play around this on local and see if I can’t get something working