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:
23
test/test.js
23
test/test.js
@@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user