symphonists/search_index

Searching for "%" return all results

renansantos opened this issue · 2 comments

Searching for "%" with double quotes return all results!
Shouldn't it return nothing ?

% literal is a wildcard character in MySQL LIKE statements, so searching for it means literally 'everything'.

This needs escaping somehow if it is passed through to a search.

This post: http://stackoverflow.com/questions/3683746/escaping-mysql-wild-cards should help us.

I'll close since this is by design.