Skip to content

Commit

Permalink
fix issue #358
Browse files Browse the repository at this point in the history
When exporting `store` and `tag` objects of Document, unset the `field` to prevent them from being scoped to an index in the `importDocument` method.
  • Loading branch information
thexeos authored Feb 8, 2023
1 parent 9abb781 commit 4388d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4388d9f

Please sign in to comment.