Closed hsiami closed 3 years ago
Good to know. I was just looking into FlexSearch as a potential candidate for a search service for persian among other languages. @hsiami , did you ever find a solution to this?
Perhaps a custom tokenizer and a language for stemming is needed? https://github.com/nextapps-de/flexsearch#add-language-specific-stemmer-andor-filter
Would be nice if you can help me to define a language settings for persian: https://github.com/nextapps-de/flexsearch/blob/0.7.0/doc/0.7.0.md
I just need some informations about the language:
With these information I can easily provide a definition for this language.
Do not use any of the latin encoder will solve this.
I used below option for FlexSearch but It doesn't work!?
var index= FlexSearch.create({ encode: "icase", tokenize: "reverse", rtl: true });
index.add(1, "سلام دنیا") index.length=> 1
persisted value => [[{},{},{},{},{},{},{},{},{}],{},["@1"]]
index.search("سلام") => []