Skip to content

Handle error case for search in Document.API? #29

@Anderssorby

Description

@Anderssorby

Regarding this line:

{:ok, 200, %{"hits" => %{"hits" => hits}}} = result

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions