Skip to content

data-pagefind-weight not working as expected #740

Answered by bglw
paulmoloneyr3 asked this question in Q&A
Discussion options

You must be logged in to vote

👋 Hey @paulmoloneyr3

Yes, some of these ranking quirks are something I need to address soon. As of the newer ranking, these weights are intermixed with the BM25 system, which makes the results better by default but harder to intuit / customize.

One example would be when a word is very common across a site — e.g. if every page contained the word release — then that word would only take a very small role in any given search's rankings. Not that this is necessarily the case you're hitting, but it's the kind of variable that can muddy the waters.

At the moment the weight is given as an input to the ranking algorithm. It might make sense to use content with high weights like data-pagefind-weig…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulmoloneyr3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants