mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-24 20:41:28 +02:00
proper match test-9
This commit is contained in:
2
match.js
2
match.js
@@ -81,7 +81,7 @@ await do_test("test-7", "bignes of splaknuk", [781]);
|
||||
// balance transformation, original text: mathematical and musical instruments
|
||||
await do_test("test-8", "matematikal musikal instruments", [1480]);
|
||||
// relevance on missing term, original text:
|
||||
await do_test("test-9", "minerals gums juices vegetables", [2337]); // 1676 does not include "vegetables"
|
||||
await do_test("test-9", "mineral fish gum juice", [2337]);
|
||||
// advanced transformation, original text: Chamberlain
|
||||
await do_test("test-10", "camperlayhn", [1903,520,535]);
|
||||
// original text: Houyhnhnms
|
||||
|
@@ -19,12 +19,11 @@
|
||||
|
||||
init: function(){
|
||||
let opts = {
|
||||
alpha: "a-z",
|
||||
intraMode: 9,
|
||||
intraIns: 9,
|
||||
intraSub: 9,
|
||||
intraTrn: 9,
|
||||
intraDel: 9
|
||||
intraMode: 1,
|
||||
intraIns: 1,
|
||||
intraSub: 1,
|
||||
intraTrn: 1,
|
||||
intraDel: 1
|
||||
};
|
||||
uf = new window.uFuzzy(opts);
|
||||
},
|
||||
|
Reference in New Issue
Block a user