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

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
curiosity
Filter Inserter
Filter Inserter
Posts: 441
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

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

Post 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

Koub
Global Moderator
Global Moderator
Posts: 7717
Joined: Fri May 30, 2014 8:54 am
Contact:

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

Post by Koub »

Can reproduce indeed, with this specific search.
Tried with other words, but couldn't find a word that failed the same way.
Koub - Please consider English is not my native language.

Loewchen
Global Moderator
Global Moderator
Posts: 8964
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

The mods title is not actually "Build Without Rhythm", for some reason it is:

Code: Select all

"title": "Build Without   Rhythm",

Koub
Global Moderator
Global Moderator
Posts: 7717
Joined: Fri May 30, 2014 8:54 am
Contact:

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

Post 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 ?
Koub - Please consider English is not my native language.

Loewchen
Global Moderator
Global Moderator
Posts: 8964
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

Certainly, I just think that is the reason it doesn't.

StephenB
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Jul 19, 2024 10:12 am
Contact:

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

Post 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.

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 326
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

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

Post 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!
bringing the oops to devops

curiosity
Filter Inserter
Filter Inserter
Posts: 441
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

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

Post by curiosity »

Great, now the bug will never be fixed :roll:

Post Reply

Return to “Mod portal Discussion”