1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-18 03:41:31 +02:00

update examples

This commit is contained in:
Thomas Wilkerling
2025-03-14 18:27:35 +01:00
parent bc54664434
commit 114303831c
75 changed files with 1363 additions and 71 deletions

View File

@@ -0,0 +1,17 @@
const { Encoder, Charset } = require("flexsearch");
const EnglishPreset = require("flexsearch/lang/en");
module.exports = {
tokenize: "forward",
encoder: new Encoder(
Charset.LatinBalance,
EnglishPreset,
{
normalize: function(str){
return str.toLowerCase();
},
filter: false,
minlength: 3
}
)
};