Spark is not able to search for usernames with spaces. One has to replace spaces with \20 when doing search. This is not intuitive (though users probably first will search by name, not by username). Spark should escape spaces automatically. But this shouldn't break capability of searching for a name with spaces (like John Doe).