search: handle syntax error in query syntax input