elastic icon indicating copy to clipboard operation
elastic copied to clipboard

A thin veneer over HTTPotion that talks to Elastic Search

Results 6 elastic issues
Sort by recently updated
recently updated
newest added

I noticed that HTTPotion [is deprecated](https://hex.pm/packages/httpotion).. The suggestion from the package author there is to use [Tesla](https://github.com/teamon/tesla) instead. Changing this is a pretty big change, so I wanted to ask...

Is there a good reason why there aren't any? If not, I might go on and add some.

If I have the following: defmodule Es.Account.User do @es_type "user" @es_index "user" use Elastic.Document.API defstruct id: nil, email: :string, first_name: :string, last_name: :string, mobile: :string, customer_number: :string, profiles: [ ]...

When HTTPotion is unable to resolve `base_url` address an exception is being thrown: `(FunctionClauseError) no function clause matching in Elastic.ResponseHandler.process/1` ![Screenshot 2020-08-24 at 14 02 08](https://user-images.githubusercontent.com/6222706/91047745-7847e980-e612-11ea-8306-e5e97ac3131c.png) To replicate it use...

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.

Is elastic capable of connecting to more than a single cluster? Based on the docs it seems like you can only specify connection details for a single cluster.