barrel_ngram_app (barrel_ngram v0.9.0)

View Source

barrel_ngram application module.

Starts the supervision subtree for the trigram index.

Summary

Functions

Clears every corpus's persistent_term meta (both the query-trusted cache and the discovery-only pending cache) -- persistent_term survives application:stop/start (no VM restart) while shard processes do not, so stale meta would otherwise make is_open/1 lie and a query crash with noproc.

Functions

start(StartType, StartArgs)

-spec start(application:start_type(), term()) -> {ok, pid()} | {error, term()}.

stop(State)

-spec stop(term()) -> ok.

Clears every corpus's persistent_term meta (both the query-trusted cache and the discovery-only pending cache) -- persistent_term survives application:stop/start (no VM restart) while shard processes do not, so stale meta would otherwise make is_open/1 lie and a query crash with noproc.