Skip to content

Default pagefind ranking weights are not applied to meged indexes #2989

@XREvo

Description

@XREvo

What version of starlight are you using?

0.32.2

What version of astro are you using?

5.4.2

What package manager are you using?

npm

What operating system are you using?

Linux

What browser are you using?

Firefox, Chrome

Describe the Bug

By default, the current site have the default values ​​applied to the ranking property of pagefind.
But not applied to the merged indexes, and that can let them have higher scores on search while having a worst content compared to the current site.

At first I was thinking of a bug in pagefind, which led me to open this issue: Pagefind/pagefind#796

But after digging my browser debugger for hours I seen that the merged indexes did not have ranking values at all. I quickly add the default value to them to test it, and everything comes back to a nominal behavior.

Link to Minimal Reproducible Example

Pagefind/pagefind#796

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions