Elasticlunr.IndexManager (Elasticlunr v0.1.1) View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

Specs

index_name() :: atom() | binary()

Link to this section Functions

Specs

child_spec(Elasticlunr.Index.t()) :: map()

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

get(index_name()) :: Elasticlunr.Index.t() | :not_running

Specs

Callback implementation for GenServer.init/1.

Specs

load_index(Elasticlunr.Index.t()) :: {:ok, Elasticlunr.Index.t()}

Specs

loaded?(index_name()) :: boolean()

Specs

loaded_indices() :: [index_name()]

Specs

start_link(Elasticlunr.Index.t()) :: :ignore | {:error, any()} | {:ok, pid()}

Specs

via(index_name()) :: {:via, Registry, {Elasticlunr.IndexRegistry, atom()}}