ElasticsearchEx.MappingsCacher (Elasticsearch v1.9.0)

View Source

Defines a GenServer to keep in cache the Elasticsearch mappings.

It accepts an optional option:

config :elasticsearch_ex, time_to_leave: :timer.minutes(30)

When defined, it refreshes the mapping in cache.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear(pid \\ __MODULE__)

delete(pid \\ __MODULE__, index_name)

get(pid \\ __MODULE__, index_name)

start_link(init_args)