Skip to content

Prioritize exact class names over method #1511

Closed

Description

@peterzhu2118

#1433 changed it so that exact matches are first in search results, but methods are prioritized over class name right now. This means that when searching for String, the class documentation ends up being 7th on the search results (and not even visible without scrolling):

Image
Image

Activity

  1. st0012 commented on Dec 19, 2025

    @st0012
    Member

    This should have been fixed by #1504, which just went online today.

  2. Earlopain commented on Dec 20, 2025

    @Earlopain
    Contributor

    Hm, docs.ruby-lang shows rdoc 7.0.1 in the footer but I still observe this behavior.

    The results are in a different order but the string class is still 7th.

  3. st0012 commented on Dec 20, 2025

    @st0012
    Member

    I get the expected results on both desktop and mobile:

    Image

    Can you clear browser cache and try again?

  4. Earlopain commented on Dec 20, 2025

    @Earlopain
    Contributor

    Oh, I'm supposed to write it uppercase. I mean, I can work with that but it's a bit unexpected to me that casing plays such a big role. I don't think I ever wrote it like that for searching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions