mix scrypath.settings.hot_apply (scrypath v0.3.5)

Copy Markdown View Source

Applies a bounded live Meilisearch settings PATCH for one Scrypath schema.

Only synonyms, stop_words, and typo_tolerance are sent (see Scrypath.Meilisearch.Settings.hot_apply/3). This mutates the live index.

Usage

mix scrypath.settings.hot_apply MyApp.Blog.Post --settings-file path/to/patch.json --ack-live
mix scrypath.settings.hot_apply MyApp.Blog.Post --settings-file patch.json --ack-live \
  --repo MyApp.Repo --index-prefix tenant

JSON must be a single object (e.g. {"stopWords": ["the"]}). Prefer file mode with restrictive permissions (chmod 600) when the JSON is sensitive.

Failures raise Mix.Error (same style as scrypath.settings.read).

TUNE14-01.