xjas wrote on 2020-03-08, 19:49:
I'm having an issue with the search box. If I search for a two-word term with a space in the middle, like mobility radeon (not i […]
I'm having an issue with the search box. If I search for a two-word term with a space in the middle, like mobility radeon (not in quotes), I get lots of results.
Then I hit the gear icon, change the 'sort by' field to 'post time', and hit 'go', and I get the page that says 'No matching posts were found' instead of the sorted results.
Doing the same thing with the term in quotes ("mobility radeon") brings me to the advanced search page instead of 'no matching posts were found.'
This seems to be a problem handling searches with multiple terms or spaces; the same actions using a single-word search term shows the sorted results.
A bump on this bug as I can confirm this bug is still there. Technically, there's an bug in the search settings (gear icon) regarding handling spaces in search keywords.
When modifying search settings (such as "sort by post time"), the spaces in the search terms are changed to "+" (encoded as "%2B" in the URL), altering the original search term thus returning significantly fewer results.
Using this post's example: When modifying search settings after initially searching "mobility radeon", the search term would become "mobility+radeon". Changing the %2B in the "keywords" part of the URL to "+" or "%20" would restore the original search term and return expected search results.
After some further testing, looks like while the search box uses "+" for spaces, the spaces in the search terms will always be changed to "+" (%2B) when I modify search settings, regardless of whether the spaces are being stored as "+" or "%20" in the "keywords" part of the URL.