-
-
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
Searching for error reference pages shows description with the title #6426
Comments
First, there is a mixup here. There are three types of search results:
What you sent as "expected behavior" is an example of the second case, while the "current behavior" is the third case. That by itself is not a bug. Now on to why this happens for errors and what we need to change to solve it. It is actually two causes for similar effects. Cause oneThe search indexes are generated from the final generated HTML for the pages. The error reference list is generated with a single paragraph containing a line break ( Additionally, when you search for an error you get first a link to the list of errors (which contains the text for every error) and second a link to the actual reference for the error you are searching for. I think the section that lists the errors should be excluded from the search. Just the list section, not the entire page. This way when someone searches for an error they would be directed directly to the reference of the error they are looking for instead of the top of the error list page. I don't know if there is some way to have Algolia consider those lists as lower priority so it is included but shows up below the specific reference page. WDYT about this idea @sarah11918? Cause twoEven if you get the result pointing to the actual reference page for the error. The title of that page is a description of the error, not the name. This would need to be changed in the error reference generator to make the title be the name of the error and the description be part of the content. I'm not sure whether this would be worth the effort, I edited it locally to see how it looks like and I personally don't see much value to justify the change. But I'm not against it if someone (maybe you) wants to contribute that. |
I believe it will help to fix, I love our clean docs! Anything to round stuff out like this :P If it is decided to move forward, I can contribute it! |
Just catching up here:
So, my proposal might be, can we exclude that one single error reference page from showing up in search AT ALL? There is no item there that doesn't already have its own page. What if hits only went directly to the error message's own page?
Agreed I care less about this. It's an entire page devoted to the error message, and you're gonna get there. I think that's fine? 😄 So, perhaps the only fix needed is to exclude the one main error reference page from Algolia search results. Tell me what I'm missing? |
Yup! I agree. If it ain't broke... |
Gotta love doc'ing for Algolia, eh? That's an excellent solution, Fryuni! So I think two things that would BOTH help (and are separate) are:
I'll ask @Princesseuh to weigh in here for thoughts: basically, it does make sense that the error message itself is the thing people will type into Algolia, so it probably makes sense to optimize formatting for headings etc. that will get picked up better. |
The formatting is done exclusively in docs, happy to adapt it to whatever is best for search! My only thought is that it might not be true that people search for the codes - I wouldn't actually be surprised if people never do. |
OK, then I'm happy to let people have a discussion here about what they think makes the most sense for "trapping" the errors in an Algolia search! I'm adding |
So, I don't know whether anything changed, but I just searched for I think the searching here is fine, but what's less ideal is that if you click on the link to the main error page, you're not taken directly to the specific error because they are not anchors themselves I guess? Only at the top of the page, then you have to search for the error. But, I believe either way you're gonna find it! The improvement I could see is that on the main error page, maybe instead of a bulleted list these are all e.g. So, I'll close this as not an "issue to fix" per se, but I don't mind if anyone on their own wants to experiment! |
📝 Issue Description
When searching for error reference pages, the chip title (?) is concatenated to the error's description.
📋 On which page(s) it occurs
All pages, search bar.
🤔 Expected Behavior
The description is usually below the item, as such:
![image](https://private-user-images.githubusercontent.com/20650404/297118206-9b4e4a1a-2158-4a90-a079-80d1182a21c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4NTg4MDgsIm5iZiI6MTcyMTg1ODUwOCwicGF0aCI6Ii8yMDY1MDQwNC8yOTcxMTgyMDYtOWI0ZTRhMWEtMjE1OC00YTkwLWEwNzktODBkMTE4MmEyMWMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDIyMDE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1NDZhNWM0MTFiNzI1MzkzZWZmMzRiNDY4M2Q2Y2RlODQxNTk4MjEyOWJkZjEyMGY1ZTU2YjNmMzA2MGMwYmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HRcKtsHbOHRw_mdZNnude--9jCZVuz4wXf2wdT3RPxw)
👀 Current Behavior
Also present in translations (just to be sure)
🖥️ Browser
Arc, Chrome, Safari
📄 Additional Information
If possible, I would like to solve the problem!
The text was updated successfully, but these errors were encountered: