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) ```