1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-10-03 08:31:50 +02:00

keep scoring on intersect-union (tags)

This commit is contained in:
Thomas Wilkerling
2025-03-11 09:40:47 +01:00
parent c7cb343f0a
commit bf86d833be
25 changed files with 513 additions and 341 deletions

View File

@@ -72,10 +72,19 @@ C.prototype.assign = function(a) {
if (b = b.char) {
e += "object" === typeof b ? b.join("") : b;
}
this.split = new RegExp("[" + (c ? "^" : "") + e + "]+", "u");
try {
this.split = new RegExp("[" + (c ? "^" : "") + e + "]+", "u");
} catch (g) {
this.split = /\s+/;
}
this.numeric = d;
} else {
this.split = t(b, w, this.split), this.numeric = t(this.numeric, !0);
try {
this.split = t(b, w, this.split);
} catch (d) {
this.split = /\s+/;
}
this.numeric = t(this.numeric, !0);
}
this.prepare = t(a.prepare, null, this.prepare);
this.finalize = t(a.finalize, null, this.finalize);