-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc book: document sorting of search results #135447
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
Comments
There are three reasons why I hesitate to do this.
Footnotes
|
hmm... all of these are valid points. |
Maybe document that? Exact results first, other results based on some scoring system (I am guessing) which is subject to change. Though I can't help but think about evaluating the scoring system, that is, what makes it good/acceptable/workable. |
Some structures have very many and complex methods, such as this, is it possible to search by description? |
@xizheyin if you're on the page you can use your browser's in-page search, but I'm sure that's not what you mean. Can you explain a little more what you do mean? |
@xizheyin full text search is not supported, no. you can however, use a regular search engine with a you may also be interested in type-based search, which is helpful for seeing how various types are constructed and retrieved. |
@hkBst I meant pretty much what @lolbinarycat said, which probably means searching for features as described in the API. Searching by using a regular search engine is a good idea! By the way, I can start a separate issue if that makes sense. |
Rustdoc is a static site generator. User-contributed notes like php.net can't be done with this architecture. Theoretically, docs.rs could do it, but they do not have the bandwidth to protect a public platform from spam. Having the crate author review user-contributed notes helps with bad suggestions posted by humans, but bot spam can only be dealt with automatically, and only the platform owner can do that. Only the platform owner can see your IP address, force you to solve a CAPTCHA, or fingerprint your browser / interaction timing. Without any of this stuff, the poor volunteer crate author is outnumbered. Platforms like Reddit and GitHub have volunteer mods as a complement to automated bot blocking, not an alternative. |
I get it, thanks for the explanation! |
currently, the sorting of search results is a bit of a black box. we should add a subsection in the rustdoc book about how the sorting works.
based on this comment.
The text was updated successfully, but these errors were encountered: