Skip to content

Search terms appear to only apply to descriptions, not names #271

@ian-h-chamberlain

Description

@ian-h-chamberlain

What happened
Searching for functions by name does not show the function (or functions with similar names) in search results as expected.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Perform a search for the name of a function, e.g. optional
  2. Suggested function names will be shown as completion suggestions - ignore them and search anyway

Example results page: https://noogle.dev/q?term=optional

Expected behavior
I expected searching for e.g. optional to show lib.optional, lib.optionalAttrs, etc. in results (probably as the first result!), but instead the first results are seemingly unrelated; builtins.path, builtins.fetchGit, etc.

My use case here is a Firefox bookmark keyword for quickly searching from the location bar, using the keyword search feature. In this case I've set https://noogle.dev/q?term=%s as the bookmark URL.

Screenshots

Screenshot 2024-07-12 at 10 25 52

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5 (23F79)
  • Browser: Firefox
  • Version: 127.0.2
  • Screen resolution: 1920x1200

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions