Managed Meilisearch migration note: use full reindex after switching #194
Unanswered
demigodmode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
While testing the move from the old two-container setup to the new managed Meilisearch mode, I ran into one migration gotcha worth calling out.
The compose change itself is pretty simple: remove the separate
meilisearchservice, removeMEILI_URL=http://meilisearch:7700, addONESEARCH_MANAGED_MEILI=true, keeponesearch_data:/app/data, and add the new managed index volume atonesearch_index:/app/meili_data.The important bit: after the cutover, don’t rely on a normal incremental reindex.
OneSearch keeps source config and indexed-file metadata in SQLite under
/app/data. Managed Meili uses a fresh/app/meili_dataindex. So after migration SQLite can still “remember” files as indexed, while the new Meili index is empty. A normal reindex may skip unchanged files.Use full reindex for each source instead:
Or from the UI in v0.14.0+, go to Admin → Sources and use Full reindex.
Before running it, make sure the source paths still exist inside the container. If a path changed or a mount is missing, full reindex now fails before clearing existing metadata, but it’s still worth checking mounts first.
Useful check:
If
indexes.documents.numberOfDocumentsis0or way lower than expected after migration, run full reindex.I’d also keep the old external Meili volume around until managed mode works, search results look right, and the app survives a restart.
All reactions