FIX: generic text search failed to search urls if special characters or spaces are present.
NEW: empty results are sorted to the end.