Skip to content

Search result order from search results page is inconsistent with the search dropdown list #3341

Closed
@jamesderlin

Description

@jamesderlin

For example, searching api.dart.dev for Future:

image

The results from the search dropdown list in the upper-right seem to be ordered by some heuristic for "relevance". The Future class itself rightfully is the first result.

In contrast, the results from https://api.dart.dev/stable/2.19.2/search.html?q=future are in some other order that seems less sensible. Why is the order inconsistent? The link to the Future class now is the third result.

Additionally, the search dropdown list shows snippets that provide more context, whereas the search results page is very bare.

Finally, I'll point out that despite claims of "27 results", there are not 27 results listed. I presume that it's counting multiple occurrences of the search term within each linked document, but this isn't what I'd expect from the Press "Enter" key to see all 27 results message in the dropdown list.

(Note that isn't quite the same as #3176, which more about what the ideal search order should be.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-searchIssues with the search box

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions