Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: Better sorting criteria for searching. #13514

Closed

Commits on Apr 14, 2014

  1. rustdoc: Better sorting criteria for searching.

    This essentially rewrites the sorting algorithm, which relied on
    the implementation-defined handling of non-consistent sorting function
    (cf. ECMA-262 5th edition, section 15.4.4.11)
    and was also a bit inefficient.
    
    The new criteria expands the prior criteria while adding these ones:
    
    - The current crate is always preferred over other crates.
      (Closes rust-lang#13178)
    - An item with a description is preferred over one without it,
      if item names match. This is a heuristic assuming that
      the documented item is more likely to be relevant.
    - An item with no literal occurrence of search query is handled correctly.
    lifthrasiir committed Apr 14, 2014
    Configuration menu
    Copy the full SHA
    db3d6d6 View commit details
    Browse the repository at this point in the history