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?
Searching forum is PITA for modders
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Searching forum is PITA for modders
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.
Re: Searching forum is PITA for modders
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.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Searching forum is PITA for modders
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.
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: Searching forum is PITA for modders
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.ssilk wrote:For me this is a sign, that modders should use the mods.factorio.com instead.
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.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Searching forum is PITA for modders
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Searching forum is PITA for modders
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.
Re: Searching forum is PITA for modders
Have you tried "site:forums.factorio.com" in Google?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Searching forum is PITA for modders
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.