API Reference Dowser.Elasticsearch v#0.1.1

View Source

Modules

Casts Elasticsearch documents and search results to and from native Elixir terms, based on each document's own index mapping — a Dowser.Client.Codec implementation, set as :codec_adapter (see Dowser.Client)

The Elasticsearch document APIs — every endpoint tagged document in the Elasticsearch OpenAPI specification (single-document CRUD, bulk, multi-get, by-query operations, reindex, term vectors).

An error response returned by Elasticsearch — a non-2xx HTTP status.

binary — a Base64 string <-> a raw binary.

date — ISO-8601 strings or epoch millis <-> DateTime.

date_range — the %{"gte" => _, "lte" => _} object form <-> a Date.Range.

geo_point — the %{"lat" => _, "lon" => _} object form <-> a {lat, lon} tuple.

ip — a string <-> an :inet address tuple ({1, 2, 3, 4}).

integer_range — the %{"gte" => _, "lte" => _} object form <-> an Elixir Range.

The Elasticsearch indices APIs — every endpoint tagged indices in the Elasticsearch OpenAPI specification (index management, mappings, settings, aliases, templates, dangling indices, …) — plus segment/1, the index-target helper used by all API modules.

Per-node cache of Elasticsearch index mappings.

The repository pattern: binds the index-related API functions to a fixed or computed index.

The Elasticsearch search APIs — every endpoint tagged search in the Elasticsearch OpenAPI specification.