You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (strlen(query) ==0) {
// ignore the syntax error in the parser
}
so now what if the query is " "? or " "? or ",. ?---- !!!? " or "a" (which is a stopword) - all of those are empty queries, I don't want to pre-process the query. I want the parser to just get it and do its best to parse it.
Activity
dvirsky commentedon Apr 24, 2017
It's still an error... you should catch that exception in your client, or not pass it to the server at all
dvirsky commentedon Apr 24, 2017
I mean, I might change it, but it's a matter of taste basically.
dmitrypol commentedon Apr 24, 2017
I am catching it in my library https://github.com/dmitrypol/redi_search_rails but thought you might want to know
dvirsky commentedon Apr 25, 2017
I know, but I hate to put something like:
so now what if the query is
" "? or" "? or",. ?---- !!!? "or"a"(which is a stopword) - all of those are empty queries, I don't want to pre-process the query. I want the parser to just get it and do its best to parse it.dvirsky commentedon Apr 25, 2017
let's try this - I've added a rule in the grammar for empty queries. pull master and try it.
Replace C++ POC with Rust POC (#66)
refactor FullTermDocument* into term::Document term::Metadata term::b…
multiarch build (RediSearch#41)