-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Search results targeting FAQ page results in 404 with v6 (and below) #14855
Comments
The only broken links I could find are those targeting the FAQ page which is not backported to v6 apparently. Related PR: #11686 |
cc @MBilalShafi |
Although porting it back to v6 would solve the issue for this particular page and v6, it won't be solved completely. Even worse, it's true for all new sections being added in the current major, for example, a fairly recently merged feature (v7) is being displayed in v6 documentation and beyond too but takes nowhere relevant. For a proper fix, and avoiding similar issue to occur in future, we need to investigate more on how to optimize algolia to only index the pages available on currently accessed major version. This should be a problem for all products under MUI X (at least, not sure if the same holds true for MUI Core too). |
@MBilalShafi That's a global issue. We have a unique algolia crawler that runs on We can handle version as different instance of the docs and so have on index per version as mention in algolia docs I'm running the creation of a v5 docs for test purpose |
I hope my issue has not induced noise, for the record we would stay a happy customer even if this was not solved. The ultimate goal is to find time and space to upgrade to latest version (business goals always come first). This is just one of those issues in the moment when you search for docs for a required version. You guys rock! |
It's the same problem with Material UI v5, the search is broken. It's a docs-infra topic. v4 and v3 searches works because it uses an older index https://dashboard.algolia.com/apps/BH4D9OD16A/explorer/browse/material-ui. I have tried to fix this a month ago but it was a rabbit hole. I fixed a few obvious problems mui/material-ui#43567, mui/material-ui#43566, and moved on. We could decide to simply disable the search for none active versions of the docs. This could make sense, especially if we only had open source users to cater for, but with commercial offerings, this doesn't fly. I gave up because it was a high opportunity cost for me, and I wanted to delegate this. So for verisons that are still in LTS, it should work. About solving this, here is one way we could go about it:
And done? For MUI X here specially. We could do a few of those steps, with that direction in mind. |
Search issueDuplicating the crawler, and using different indexes is the solution we started to go for. I considered 1 crawler + index per version such that on index correspond to one sub-domain. For example, having Links issues
For the search yes, for maintaining a coherent docs for previous version not entirely. The main issue is that we have version missmatch between core and X. So the core docs were stable (v5) while the X one moved throw v5, v6 (refactoring the pickers), and v7 (introducing charts and tree view) So when we archive the core docs (v5.mui.com) it matches with the latest version of the X docs (v7.mui.com/x/) which leads to 2 issues:
A solution could be to replace relative links from That's an argument in favor of having sync major between core and X. Or to have a website per project |
IMHO, this idea sounds like a nice compromise, at least until we align versions. 🤔 |
@alexfauquette If we want to do the least amount of work for this step, we could use the same Algolia crawle/index, docs-indra didn't change between those Material UI and MUI X majors, but it works too to start to have multiple.
If the crawler/index is a projet specific, it will break the cross projects search experience, so I don't think it works. Unless maybe https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/multi-index-search/js/ works, unclear, it sounds like x4 more API requests. A side note, right now, that cross projet search experience on the latest major blends the projects too much, we should show other hits more separate, so each project feels more standalone.
I think that it should show the results of the most recent major compatible. It's achievable using or/and conditions in https://github.com/mui/material-ui/blob/1719ed4ed17a4eddc3d9ff493e6b8f5dd0bbda51/docs/src/modules/components/AppSearch.js#L452
Yeah, this was the rabbit hole. I think it's step 3. The UX is broken for developers, even before being broken for the crawler:
|
Steps to reproduce
Guys sorry for dropping in like this, I have no time for all the details of confirming to issue protocol. The fact is this:
Search results only provide correct results with links if using the latest version. We are still on 6 so naturally choose v6 and all the search results are NOOP.
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: docs 404
The text was updated successfully, but these errors were encountered: