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:
@@ -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
|
||||
}
|
||||
)
|
||||
};
|
Reference in New Issue
Block a user