-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error searching for #41
Comments
It's still an error... you should catch that exception in your client, or not pass it to the server at all |
I mean, I might change it, but it's a matter of taste basically. |
I am catching it in my library https://github.com/dmitrypol/redi_search_rails but thought you might want to know |
I know, but I hate to put something like: if (strlen(query) == 0) {
// ignore the syntax error in the parser
} so now what if the query is |
let's try this - I've added a rule in the grammar for empty queries. pull master and try it. |
FT.CREATE User SCHEMA name TEXT
FT.ADD User 'bob'
FT.SEARCH User ''
RESULT
(error) Syntax error at offset 0 near ''
Sometimes UI searches pass empty strings when person clicks Search w/o specifying anthing
The text was updated successfully, but these errors were encountered: