- Return
Snap.HTTPError
when ElasticSearch returns an error HTTP status without any accompanying JSON - Expose
inner_hits
field onSnap.Hit
struct
- Accept
conn_opts
config options to configure the underlying HTTP transport (thanks @danielxvu)
- Update
telemetry
dependency to 1.0
- Allow extra options on
Snap.Bulk.perform/4
which are passed into the underlying request - Added
matched_queries
andhighlight
fields on theSnap.Hit
struct.
- Added the
host
andport
to the Telemetry metadata.
- Drop the underscore from the response struct keys, as it's just annoying to work with.
- Added
Snap.Search
to wrap making searches and parsing the response into structs.
- Fixed behaviour of
max_errors
when it's set to0
.
- Added support for an optional
max_errors
parameter inSnap.Bulk.perform
, which aborts the operation if the number of errors accumulated exceedes this count.
- Pass extra opts, such as
pipeline: "foo"
inSnap.Bulk.perform
to the Bulk API endpoint.
- Added support in
Snap.Auth.Plain
for defining the username and password in the configured URL.
- Introduce
Snap.BulkError
to wrap a list of errors produced fromSnap.Bulk
.
- Documentation formatting fix.
- First release.