mattbaird/elastigo — pull request #143 by nwolff (2014-12-02 09:36:19+00:00)
Title: no error no nonexistent document

I think the exists method should only return an error when something bad occurs. The fact that a document does not exist is expected and is reflected in the boolean return value false.

I also took a clue from the python official lib: https://github.com/elasticsearch/elasticsearch-py/blob/377dd12d12d640decc17d43ff83a469072f46
5ef/elasticsearch/client/__init__.py#L256-L279

I guess this may break existing clients that were expecting a RecordNotFound error, but I didn't want to create yet another Exist method (there is already a probably unused Exist method in baserequest) to keep backward compatibility.