mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-10-04 09:01:41 +02:00
proper light/compact bundle
This commit is contained in:
@@ -59,7 +59,7 @@ const { Index } = require("flexsearch");
|
||||
const files = await fs.readdir("./export/");
|
||||
await Promise.all(files.map(async file => {
|
||||
const data = await fs.readFile("./export/" + file, "utf8");
|
||||
await index.import(file, data);
|
||||
index.import(file, data);
|
||||
}));
|
||||
|
||||
// perform query
|
||||
|
Reference in New Issue
Block a user