From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 18:30:22 +0000 (+0100) Subject: wip #5120 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=441efc81a9683c9b855c755f1e6805a3c04c70ad;p=cubist_minisearch.git wip #5120 @0.25 --- diff --git a/resources/js/index.js b/resources/js/index.js index 1d8b607..0ebdf18 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -15,8 +15,7 @@ fs.readFile(file, 'utf8', (err, data) => { } let miniSearch = new MiniSearch({ fields: fields, storeFields: storeFields, prefix: prefix == '1', fuzzy: parseFloat(fuzzy) - }); miniSearch.addAll(JSON.parse(data)); console.log(JSON.stringify(miniSearch)); -}) \ No newline at end of file +}); \ No newline at end of file