Skip to content

[rustdoc] Search results: List exact alias matches before fuzzy ones #82132

Closed
@ojeda

Description

@ojeda

Aliases should be displayed after non-aliases. Since we have fuzzy search [*], we could match in this order:

  • Exact matches (non-aliases)
  • Exact matches (aliases)
  • Fuzzy search (any, assuming it sorts by some "similarity" index)

If we get #82000, then we could even do:

  • Exact matches (non-aliases)
  • Exact matches (Rust aliases)
  • Exact matches (non-Rust aliases)
  • Fuzzy search (any, assuming it sorts by some "similarity" index)

[*]
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions