Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatsuyoshi <sfbgwm30@gmail.com>2021-10-25 18:04:05 +0300
committermatsuyoshi <sfbgwm30@gmail.com>2021-10-25 18:04:05 +0300
commitc5aa5909e5820e0c7dd7e3bd62f09c684fd973fe (patch)
tree37cb70211111d3bb1fcadfb058adfed5a33295c4
parentd18377c4d8e3e179086c7bb263f39edfb9b3d60b (diff)
fix tokenizer
-rw-r--r--assets/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index a2ffc4e..2da9df3 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -8,7 +8,7 @@ const init = () => {
}
let index = new FlexSearch.Document({
- tokenize: 'forward',
+ tokenize: 'reverse',
document: {
field: ['title', 'body'],
store: ['title', 'href', 'body']