Skip to content

Search should split crate names on Underscore when indexing #1549

Closed
@behnam

Description

@behnam

Looking at the search result for static (https://crates.io/search?q=static), you can see that the term is not matching lazy_static's crate name, down-ranking the crate to the end of the page, although it's the most popular static-related crate bar far.

Looking at the search result for lazy_static (https://crates.io/search?q=lazy_static), it looks like we already split on Underscore the search terms.

I think we should do the same, splitting on Underscore, when indexing create names, so static query better matches lazy_static.

WDYT?

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