Sets up the Elasticsearch alias + versioned index for every configured
Orkestra.ES.Schema (idempotent — existing aliases are left untouched).
Configuration
Schemas are discovered from application config as a list of
{SchemaModule, ClusterModule} pairs:
config :orkestra, :es_schemas, [
{MyApp.Search.Product, MyApp.ESCluster},
{MyApp.Search.Article, MyApp.ESCluster}
]Usage
mix orkestra.es.setup
mix orkestra.es.setup --schema MyApp.Search.Product
mix orkestra.es.setup --schema MyApp.Search.Product --culture itOptions
--schema— only operate on the given schema module.--culture— only operate on the given culture (multi-culture schemas).
Each schema × culture prints its outcome (created / already_exists).
The task exits non-zero (via Mix.raise/1) on the first error.