LibreChat/packages
Danny Avila dc7889770a
fix: pass explicit primaryKey to Meilisearch addDocuments/updateDocuments calls
Meilisearch v1.0+ refuses to auto-infer the primary key when a document
contains multiple fields ending with 'id'. The messages index has both
conversationId and messageId, causing addDocuments to silently fail with
index_primary_key_multiple_candidates_found, leaving message search empty.

Pass { primaryKey } to addDocumentsInBatches, addDocuments, and
updateDocuments — the variable was already in scope.

Also replace raw this.collection.updateMany with Mongoose Model.updateMany
to satisfy the no-restricted-syntax ESLint rule (tenant isolation guard).

Closes #12538
2026-04-03 17:48:39 -04:00
..
api 🧹 chore: Clean Up Config Fields (#12537) 2026-04-03 12:22:58 -04:00
client 🗣️ fix: Prevent @librechat/client useLocalize from Overwriting Host App Language State (#12515) 2026-04-03 15:01:39 -04:00
data-provider 🔨 fix: Custom Role Permissions (#12528) 2026-04-03 13:24:11 -04:00
data-schemas fix: pass explicit primaryKey to Meilisearch addDocuments/updateDocuments calls 2026-04-03 17:48:39 -04:00