mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-25 15:01:19 +02:00
update examples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { Encoder, Charset } from "flexsearch/esm";
|
||||
import EnglishPreset from "flexsearch/esm/lang/en";
|
||||
|
||||
export default {
|
||||
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