Regarding this line: https://github.com/radar/elastic/blob/1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa/lib/elastic/document/api.ex#L190 Could we handle the error case for the Document.API.search as well? If for example the index doesn't exist it creates a nasty exception.