Closed chrismytton closed 10 years ago
Looks good - just one query about whether it might be worth getting some more information about the error via the explain
parameter and reporting that :+1:
@mhl I've added the explain parameter and changed the logic slightly so it returns a 400 status rather than a 500, which seems to make more sense in this context.
@hecticjeff Looks good :+1:
When the search query is invalid show the user a nice message rather than the raw elasticsearch error.
Fixes #52