The discussion revolves around improving search functionality in Discourse. tophee initially suggested making search interpret spaces in a search term as underscores, which would return relevant posts containing the searched phrase with underscores instead of spaces. maja implemented this feature, allowing searches to match variations with different word separators.
Further discussion led to the clarification that this feature already works for site settings and is not necessary for global search. xrav3nz pointed out that site settings already support searching with spaces and that the original request was likely referring to the /search page. codinghorror suggested tabling the request, citing low utility, and sam agreed, removing the pr-welcome label.
When I searched for "enable local logins via email" (a site setting) an hour ago, I was surprised not to find a single post. Now I noticed that there actually are some posts containing enable_local_logins_via_email.
How about having search interpret spaces in a search term also as underscores, i.e. to return posts with enable_local_logins_via_email in a search for "enable local logins via email"?
I figured out that underscores are not escaped in exact term when searching "enable_local_logins_via_email", so it already matches variations with different word sepataratos like enable local logins via email or enable+local+logins+via+email, I assume this is intended?
With the change I added, spaces in the exact search term match the text where any word separators are used, not only underscores.
While we’re at it, I think it might also help if the search term with all dashes eliminated would be treated as equivalent with the search term. What I mean is: a search for “multi-site” should find multisite as if I had searched for “multisite”.