@nxgt/mongo-meilisearch 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/troubleshooting.md +12 -7
- package/package.json +5 -5
package/docs/troubleshooting.md
CHANGED
|
@@ -17,7 +17,7 @@ are refused with a `TypeError` before anything is opened.
|
|
|
17
17
|
| [Options](#options) | [transform](#createsearchsync-transform-must-be-a-function) · [batchSize](#createsearchsync-batchsize-must-be-a-whole-number-above-0-not-0) · [flushIntervalMs](#createsearchsync-flushintervalms-must-be-a-whole-number-of-milliseconds-not--1) · [name](#createsearchsync-name-must-not-be-empty) |
|
|
18
18
|
| [Starting](#starting) | [no replica set](#search-sync-articlesarticles-failed-starting-the-changestream-stage-is-only-supported-on-replica-sets) · [privileges](#search-sync-articlesarticles-failed-reindexing-not-authorized-on-app-to-execute-command--aggregate-articles-pipeline---changestream-----) · [history lost](#search-sync-articlesarticles-was-last-at-a-point-the-servers-change-history-no-longer-reaches-reindex-it-or-start-it-with-onhistorylost-reindex) · [already running](#search-sync-articlesarticles-is-already-following-changes-in-this-process-close-it-before-you-start-it-twice) · [held by another process](#search-sync-articlesarticles-is-held-by--until--wait-for-it-to-close-or-for-its-lease-to-lapse-before-you-start-it) · [the lease cannot be taken](#search-sync-articlesarticles-failed-taking-its-lease-) · [the lease cannot be checked](#search-sync-articlesarticles-failed-checking-its-lease-) · [the lease lost while reindexing](#search-sync-articlesarticles-lost-its-lease-another-process-holds-the-name-now-or-the-lease-was-removed-it-lapses-when-not-renewed-within-30000-ms-it-stopped-rather-than-run-beside-it) |
|
|
19
19
|
| [The transform](#the-transform) | [an id that is not the index's](#search-sync-articlesarticles-transform-gave-id-other-for-the-document--whose-index-id-is-) · [not a document](#search-sync-articlesarticles-transform-gave-a-string-for-the-document-) · [it threw](#search-sync-articlesarticles-failed-following-changes-boom) |
|
|
20
|
-
| [Sending](#sending) | [an id Meilisearch refuses](#search-sync-articlesarticles-failed-sending-changes-task-3-
|
|
20
|
+
| [Sending](#sending) | [an id Meilisearch refuses](#search-sync-articlesarticles-failed-sending-changes-task-3-add-on-index-articles-failed-invalid_document_id) |
|
|
21
21
|
| [Stopping](#stopping) | [lease lost](#search-sync-articlesarticles-lost-its-lease-another-process-holds-the-name-now-or-the-lease-was-removed-it-lapses-when-not-renewed-within-30000-ms-it-stopped-rather-than-run-beside-it) · [a dropped collection](#the-sync-stops-and-closed-resolves-with-invalidated) |
|
|
22
22
|
|
|
23
23
|
## Install
|
|
@@ -419,12 +419,17 @@ running.closed.catch((error) => log.error(error));
|
|
|
419
419
|
|
|
420
420
|
## Sending
|
|
421
421
|
|
|
422
|
-
### `Search sync "articles:articles" failed sending changes: Task 3 (
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
422
|
+
### `Search sync "articles:articles" failed sending changes: Task 3 (add) on index "articles" failed: invalid_document_id`
|
|
423
|
+
|
|
424
|
+
Code `FAILED`; the `cause` is `@nxgt/meilisearch`'s `SearchIndexError`,
|
|
425
|
+
carrying the failed task, and Meilisearch's own sentence is one level
|
|
426
|
+
further, on `error.cause.cause.message`: *Document identifier `"…"` is
|
|
427
|
+
invalid. A document identifier can be of type integer or string, only
|
|
428
|
+
composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and
|
|
429
|
+
underscores (\_), and can not be more than 511 bytes.* It quotes the id, so
|
|
430
|
+
the message leaves it out; before `@nxgt/meilisearch` 0.4.1 the line ended
|
|
431
|
+
with `Task 3 (documentAdditionOrUpdate) … failed: ` and that sentence.
|
|
432
|
+
Match on `code` and on `error.cause.task.error.code`, never on the text.
|
|
428
433
|
|
|
429
434
|
**When:** a batch is sent — on `reindex()`, on a `flush()`, or from the
|
|
430
435
|
follower's own timer, in which case it surfaces on `closed`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/mongo-meilisearch",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Keeps a Meilisearch index in step with a MongoDB collection: a typed transform, a full reindex, and a change stream that resumes where it stopped",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nxgt/meilisearch": "^0.4.
|
|
53
|
-
"@nxgt/mongo": "^0.17.
|
|
52
|
+
"@nxgt/meilisearch": "^0.4.1",
|
|
53
|
+
"@nxgt/mongo": "^0.17.1",
|
|
54
54
|
"@types/bun": "^1.4.0",
|
|
55
55
|
"meilisearch": "0.62.0",
|
|
56
56
|
"mongodb": "7.6.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"zod": "4.6.5"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@nxgt/meilisearch": "^0.4.
|
|
62
|
-
"@nxgt/mongo": "^0.17.
|
|
61
|
+
"@nxgt/meilisearch": "^0.4.1",
|
|
62
|
+
"@nxgt/mongo": "^0.17.1",
|
|
63
63
|
"meilisearch": ">=0.62.0 <1",
|
|
64
64
|
"mongodb": ">=7.0.0 <8",
|
|
65
65
|
"typescript": "^6.0.3"
|