sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
180 stars 22 forks source link

Improve search result rankings #134

Closed sbrl closed 6 years ago

sbrl commented 7 years ago

The number of occurrences of a word in a page should be multiplied by the number of letters in said word. Example:

This way, the longer words in the query gain a higher priority than shorter ones, that are likely not as important. We may, however, need to apply a formula (e.g. exponential, quadratic, polynomial) to the letter count in order to normalise the resulting rankings to even things out though.