1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-11 16:44:18 +02:00

update examples

This commit is contained in:
Thomas Wilkerling
2025-03-13 00:07:56 +01:00
parent 11c3377e90
commit 5d3eb14cd8
80 changed files with 2381 additions and 340 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
}
)
};