Console commands
Commands skip search-only indexes unless a specific search-only handle is supplied. Search-only indexes do nothing when synced or flushed.
Sync settings#
php craft meilisearch-connect/sync/settings
Creates each managed Meilisearch index and applies its configured settings.
Run this after changing index settings.
Sync data#
php craft meilisearch-connect/sync/all
php craft meilisearch-connect/sync/index pages
all is the default action. Neither command removes sources that no longer match the configured query. Use refresh when you need a full replacement.
Flush data#
php craft meilisearch-connect/sync/flush pages
php craft meilisearch-connect/sync/flush-all
Deletes all documents from the index and removes the plugin’s tracking records.
Refresh all indexes#
php craft meilisearch-connect/sync/refresh-all
Builds a temporary index, indexes the current data, then swaps it with the live index. This is the safest way to replace an entire index.