mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-11 08:34:44 +02:00
export/import document worker
This commit is contained in:
@@ -26,9 +26,9 @@ const config = {
|
||||
];
|
||||
|
||||
// add test data
|
||||
data.forEach((item, id) => {
|
||||
index.add(id, item);
|
||||
});
|
||||
for(let i = 0; i < data.length; i++){
|
||||
await index.addAsync(i, data[i]);
|
||||
}
|
||||
|
||||
// perform query
|
||||
let result = await index.search({
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nodejs-commonjs-basic-worker-extern-config",
|
||||
"dependencies": {
|
||||
"flexsearch": "^0.8.105"
|
||||
"flexsearch": "github:nextapps-de/flexsearch"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user