HistoryAtState/hsg-shell

Improve handling of Lucene query parser errors

Opened this issue · 0 comments

Keyword searches that start with an asterisk trigger a stack trace, e.g., https://history.state.gov/search?q=*blah. We should catch Lucene query parser errors and report human-readable error messages:

screen shot 2017-12-14 at 3 17 37 pm

We should probably surround our core queries with try-catch blocks. Ideally we will show the user a useful, actionable error message, but at the very least we should fail more gracefully than this.

See also @plutonik-a's observation in #89 (comment).