fix: keep the date and Next steps out of search

A query word matches the start of a longer word. Since the index grew,
the "2" of "playstation 2 bios" matched the 2026 of every page's date
line and the "u" of "wii u bios" the "use" of Next steps, so the
PlayStation and Nintendo pages held every query word and ranked above
the PlayStation 2 and Wii U pages. Both blocks carry
data-pagefind-ignore now: search_gate answers 58 of 58 queries, the
four console pairs by 9 to 14 percent. Batocera's pages weigh 882
bytes more for it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-10 08:41:03 +01:00
1 parent 25057ee3a2
commit f7a0a7f263
3 files changed
+16 -5

No files matched your search

+4 -2
View File
@@ -268,8 +268,10 @@ BEFORE_WEIGHT = {
# Elektronika BK, FM Towns and Nintendo DS moved to part pages. Built
# site of 27c33b966: 13 pages, 15,662 elements, 1,356,360 bytes, and 40
# bytes more where its Amiberry build is named "Amiberry 8.0.0
# (facaaeb, Batocera)" (twice).
"batocera": (13, 18_854, 1_356_400),
# (facaaeb, Batocera)" (twice). The search stopped reading the date
# line and "Next steps" on 2026-11-10 (data-pagefind-ignore, about 68
# bytes a page): 1,357,282 bytes on the built site of 25057ee3a.
"batocera": (13, 18_854, 1_357_282),
"amberelec": (1, 7_928, 473_388),
"romm": (2, 9_561, 572_487),
"retroarch": (14, 21_503, 1_430_802),