1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-01 09:53:56 +02:00

Update Readme

This commit is contained in:
Thomas Wilkerling
2019-02-19 23:43:11 +01:00
parent 89c0e7a06a
commit 4b90402025
9 changed files with 75 additions and 35 deletions

View File

@@ -870,7 +870,6 @@ describe("Encoding", function(){
});
});
// ------------------------------------------------------------------------
// CJK Word Break
// ------------------------------------------------------------------------
@@ -897,6 +896,28 @@ describe("CJK Word Break", function(){
});
});
// ------------------------------------------------------------------------
// Cyrillic Word Break
// ------------------------------------------------------------------------
describe("Cyrillic Word Break", function(){
it("Should have been tokenized properly", function(){
var index = FlexSearch.create({
encode: false,
tokenize: function(str){
return str.replace(/[\x00-\x7F]/g, "").split("");
}
});
index.add(0, "Фообар");
expect(index.search("Фообар")).to.include(0);
expect(index.search("бар")).to.include(0);
});
});
// ------------------------------------------------------------------------
// Right-To-Left
// ------------------------------------------------------------------------