nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Pagefind search issues

Open vladavoX opened this issue 2 months ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

Seems that pagefind doesn't rank stuff the way it is supposed to be, or it doesn't work as it should

To Reproduce Steps to reproduce the behavior:

Even on https://nextra.site/ when I search "Layout component" that is H1, you need to scroll all the way down to find it

Expected behavior A clear and concise description of what you expected to happen.

better ranking when searching, any suggestions?

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [iOS]
  • Browser [chrome]

Additional context Add any other context about the problem here.

vladavoX avatar Oct 01 '25 15:10 vladavoX

hm, strange, pagefind uses a highest ranking for h1 tags https://pagefind.app/docs/weighting/#default-rankings

dimaMachina avatar Oct 01 '25 16:10 dimaMachina

is this exposed to be modified on nextra? https://pagefind.app/docs/ranking/

vladavoX avatar Oct 02 '25 07:10 vladavoX

I will push a PR, with these changes got the "Layout Component" search to be top 2 to test

Image

vladavoX avatar Oct 02 '25 11:10 vladavoX

I'm experiencing the same issue :( It would be very helpful if this PR were merged

wozaxi avatar Oct 09 '25 16:10 wozaxi