mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-09 07:37:09 +02:00
worker index basic support export/import
This commit is contained in:
@@ -36,6 +36,7 @@ const { Index } = require("flexsearch");
|
||||
console.log(data[i]);
|
||||
});
|
||||
|
||||
// -----------------------
|
||||
// EXPORT
|
||||
// -----------------------
|
||||
|
||||
@@ -46,6 +47,7 @@ const { Index } = require("flexsearch");
|
||||
await fs.writeFile("./export/" + key, data, "utf8");
|
||||
});
|
||||
|
||||
// -----------------------
|
||||
// IMPORT
|
||||
// -----------------------
|
||||
|
||||
|
Reference in New Issue
Block a user