Page 1 of 1

Mod portal search doesn't find a work present in a mod's name

Posted: Mon Jul 08, 2024 6:00 am
by curiosity
Apparently, this is a place to report bugs with search? When I try searching "rhythm", expecting to see Build Without Rhythm, I see no results.

[Koub] Split from the mod portal search discussion to make it into its own standalone bug report

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Mon Jul 08, 2024 8:16 am
by Koub
Can reproduce indeed, with this specific search.
Tried with other words, but couldn't find a word that failed the same way.

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Mon Jul 08, 2024 10:08 am
by Loewchen
The mods title is not actually "Build Without Rhythm", for some reason it is:

Code: Select all

"title": "Build Without   Rhythm",

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Mon Jul 08, 2024 11:46 am
by Koub
Yeah, but as long as there is "rhythm" in the title, the search should work, no matter the number of spaces before it, right ?

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Mon Jul 08, 2024 12:29 pm
by Loewchen
Certainly, I just think that is the reason it doesn't.

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Fri Jul 19, 2024 10:20 am
by StephenB
Hi, I created this mod. In the mod's info.json I set the title to "Build Without Rhythm" (3 spaces) as a joke. I tried to also set it like that in the mod website, but the site eliminates duplicate spaces, so instead I gave it the name "Build Without   Rhythm" which contains Unicode space-like characters (I think it's narrow no-break space, U+202F). As a joke. That was probably breaking your search algorithm because it thinks "Without   Rhythm" is one word. I've now changed it to use space, special space, space. Searching for "rhythm" still doesn't work but I think that's because you are caching searches. Try searching it again in a few hours when the cache entry expires.

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Thu Jul 25, 2024 7:58 am
by vinzenz
StephenB wrote:
Fri Jul 19, 2024 10:20 am
Hi, I created this mod. In the mod's info.json I set the title to "Build Without Rhythm" (3 spaces) as a joke. I tried to also set it like that in the mod website, but the site eliminates duplicate spaces, so instead I gave it the name "Build Without   Rhythm" which contains Unicode space-like characters (I think it's narrow no-break space, U+202F). As a joke. That was probably breaking your search algorithm because it thinks "Without   Rhythm" is one word. I've now changed it to use space, special space, space. Searching for "rhythm" still doesn't work but I think that's because you are caching searches. Try searching it again in a few hours when the cache entry expires.
He :D thanks for fixing it!

Re: Mod portal search doesn't find a work present in a mod's name

Posted: Thu Jul 25, 2024 6:18 pm
by curiosity
Great, now the bug will never be fixed :roll: