From 4388d9f63d61ce261d19f73e4c2921ab6c169653 Mon Sep 17 00:00:00 2001 From: Teodor Atroshenko Date: Wed, 8 Feb 2023 05:22:03 +0100 Subject: [PATCH] fix issue #358 When exporting `store` and `tag` objects of Document, unset the `field` to prevent them from being scoped to an index in the `importDocument` method. --- src/serialize.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serialize.js b/src/serialize.js index 072e8c5..266a1e0 100644 --- a/src/serialize.js +++ b/src/serialize.js @@ -169,12 +169,14 @@ export function exportDocument(callback, self, field, index_doc, index){ key = "tag"; data = this.tagindex; + field = null; break; case 2: key = "store"; data = this.store; + field = null; break; // case 3: