Skip to content

Classes named like common methods are very difficult to search for #1497

Closed

Description

@Earlopain

https://docs.ruby-lang.org/en/master/

If I want to look at docs for class Hash and search for it exactly, it's the 29th result (if I didn't misscount). That is probably because of #1433, it priotizes exact method matches and there are many classes that defined custom hash. The same is true when searching for the String class, there are quite a few string methods that take precedence.

I don't know if the "solution" would be to prioritize exact classes even before exact methods. When searching for Integer, the Integer method comes before the integer class, so maybe? I don't think that method is what users are looking for.

Probably the whole search logic needs a rework tbh, it never felt "quite right". At the moment it is very unfortunate that such common classes are buried so far down in the search results.

Activity

  1. added a commit that references this issue on Dec 18, 2025
    e4e79c4
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