Unable to properly sync index from MongoDB to Meilisearch #8821
-
What happened?When I tried to update Meilisearch from getmeili/meilisearch:v1.7.3 to getmeili/meilisearch:v1.12.3, I deleted the data files for Meilisearch. After restarting the container, I found that LibreChat could not search previous conversation history. I checked the Meilisearch console and only saw data for the most recent few conversations, but LibreChat's logs indicated that the conversations had been fully synchronized. I suspect there was an issue during synchronization; LibreChat believes all data has been synchronized, but in reality, that is not the case. Lines 53 to 78 in bc43423 Version Information
Steps to Reproduce
What browsers are you seeing the problem on?Chrome Relevant log output> [email protected] backend
> cross-env NODE_ENV=production node api/server/index.js
2025-08-02 19:50:58 info: Connected to MongoDB
2025-08-02 19:50:58 info: [indexSync] Starting index synchronization check...
2025-08-02 19:50:58 info: [indexSync] Messages are fully synced: 1120/1120
2025-08-02 19:50:58 info: [indexSync] Conversations are fully synced: 250/250 Screenshots![]() Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
When manually deleting all meilisearch data, we can't know what's properly synced without doing an inefficient cross-reference. What we can do is create a script to manually reset the |
Beta Was this translation helpful? Give feedback.
-
For others' reference:
|
Beta Was this translation helpful? Give feedback.
When manually deleting all meilisearch data, we can't know what's properly synced without doing an inefficient cross-reference.
What we can do is create a script to manually reset the
_meiliIndex
flag tofalse
for all documents, so everything can be re-indexed on startup. Will push something up soon.