Searching forum is PITA for modders

Discussions related to the forums itself. Call for moderators. Trash Posts area.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Searching forum is PITA for modders

Post by aubergine18 »

The forum search feature treats underscore and hyphen chars as if they were spaces delimiting separate search keywords. Lots and lots of stuff in the modding API uses underscore and hyphen... So when we try and search for anything like that, the forum splits our search term in to separate keywords, and then searches for anything with those keywords = quintillions of bogus search results, even if we set it to "all terms or query as entered".

Would it be possible to tweak the forum search engine so it treats _ and - as normal chars? I imagine this would also need to be applied to the indexing routine as well :/ It would make searching for specific properties, types, etc., much, much easier.

EDIT: Just found that enclosing search term in double quotes seems to give much better results... Maybe some JS could be added to search form so that on submit if it sees any char sequences with - or _ (but not spaces) it encloses them in quotes?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Searching forum is PITA for modders

Post by Adil »

For me, limiting the search range to modding discussion board seems to work tolerable most of the time.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Searching forum is PITA for modders

Post by ssilk »

See eventually viewtopic.php?f=55&t=19792 Search engine for FFF

For me this is a sign, that modders should use the mods.factorio.com instead. This is also the featured idea, that the devs push.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Searching forum is PITA for modders

Post by Adil »

ssilk wrote:For me this is a sign, that modders should use the mods.factorio.com instead.
A quasi-forum with more basic features absent? Ugh, no. It seems to that here the search over the modding discussion/help threads is considered.
Does it have a search over discussions at all?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Searching forum is PITA for modders

Post by ssilk »

Go into a discussion, use the search and you will find those posts with the keywords in.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Searching forum is PITA for modders

Post by aubergine18 »

It's good to know that mods.factorio.com discussions can be searched. However, that has nothing to do with searching forums.factorio.com for posts containing specific API terms.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3730
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Searching forum is PITA for modders

Post by DaveMcW »

Have you tried "site:forums.factorio.com" in Google?
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Searching forum is PITA for modders

Post by aubergine18 »

Yes, but most of the time it doesn't fare much better (particularly due to hyphenated prototype names common in Factorio). In particular, I don't know how to limit Google searches to a specific subset of the forums (eg. the 4 modding discussion/help forums). Also, it's somewhat inconvenient to jump out to google.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “This Forum”