Searching forum is PITA for modders
Posted: Thu Sep 08, 2016 12:44 pm
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?
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?