From aaf2d63360d38b6a404a98a59f9785ea3a3435aa Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 22 Aug 2019 14:34:05 +0200 Subject: [PATCH] feat: add saber-plugin-search (#366) * feat: saber-plugin-local-search * fix: only add valid pages * use global public url Co-Authored-By: Koyuki (EGOIST) <0x142857@gmail.com> * shorten syntax * rename plugin to `saber-plugin-search` * feat: add multiple adapter support * make it more low-level * strip html tags * Add LICENSE * tweaks * docs: update readme --- packages/saber-plugin-search/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/saber-plugin-search/README.md b/packages/saber-plugin-search/README.md index c53d1fa19..26fe328ea 100644 --- a/packages/saber-plugin-search/README.md +++ b/packages/saber-plugin-search/README.md @@ -63,8 +63,10 @@ const options = { name: 'excerpt', weight: 0.4 } - ] + ], + shouldSort: true // sorts the results by score } + const fuse = new Fuse(database, options) const matchedResults = fuse.search(keyword) ```