You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Desktop (please complete the following information):
OS: macOS Sonoma 14.5 (23F79)
Browser: Firefox
Version: 127.0.2
Screen resolution: 1920x1200
The text was updated successfully, but these errors were encountered:
I'll look into it. This happens, because we use "pagefind" and lib.optional is the title, which is relatively unsimilar to optional since it has lib. (4 char, & length is completely different).
I think i should add the name as a h1 title, which has higher weights, but i need to look into the details, how i currently set things up.
I am also open thankfull for any contribution if you want to fix it based on my description.
Thanks for the quick response! It looks like other users of pagefind have also run into this: CloudCannon/pagefind#437
It seems like adding the name as an h1 would work, an alternative might also be to set a custom attribute with a custom weight with data-pagefind-index-attrs.
If I have some time to try out the dev environment I can try to fix it myself! From the README:
Searching within the page is done via pagefind which is only available in the production build.
Is there something special I'll need to do in order to see pagefind-related changes in a local dev environment?
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:
optional
Example results page: https://noogle.dev/q?term=optional
Expected behavior
I expected searching for e.g.
optional
to showlib.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
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: