Skip to content

Libraries ranked higher than classes in search results #3436

@InMatrix

Description

@InMatrix

Some users found it surprising that a library is ranked higher than classes of the same name. Here's an example:

image

It makes sense that developers are more likely to be looking up classes and methods than libraries. @srawlins pointed out it's done at https://github.com/dart-lang/dartdoc/blob/main/lib/src/search.dart#L176. Maybe we can revisit this heuristic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-searchIssues with the search boxtype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions