Leading and trailing spaces are not trimmed in Marketplace search keywords, resulting in strange/missing search results
tracked
Honey Puddles
- Do a marketplace search for [chocolate cake]
- Note that there are 2674 matching items found
- Do a marketplace search for [chocolate cake ] (note trailing space)
- Note that there are only 1170 matching items found
- Do a marketplace search for [ chocolate cake] (note leading space)
- Note that there are only 1170 matching items found
User search queries should have leading and trailing spaces removed before executing the search function.
It may be desirable to trim off other similar unicode characters, such as:
no-break space, en space, em space, three-per-em space, four-per-em-space, six-per-em space, figure space, punctuation space, thin space, hair space, zero width space, narrow no-break space, medium mathematical space, zero width no-break space, and thickspace
Log In
Shrike Linden
tracked
Shrike Linden
closed
Shrike Linden
This does indeed look like a place for improvement. We'll investigate and see if a fix is merited. Have a good day!
Coffee Pancake
Why. Please. Fix it.
" some string" and "some string " should all return results for "some string"
Coffee Pancake
For added amusement. Try searching for (without quotes!!)
"cakes" - 2881 results
".cakes" - 1105
"cakes?" - 1105
";cakes:" - 1105
"^cakes^" - 1105
"🤖cakes" - 1105