Closed erisdev closed 7 years ago
lagleki/glekitufa@05e5019a4e888d18c075e706cc2ffadf6b78943f appears to be the commit that broke it
this fixes multi-word searches, but special search queries are still broken.
diff --git a/sutysisku/sisku.js b/sutysisku/sisku.js
index 826b0d9e..34396ffd 100644
--- a/sutysisku/sisku.js
+++ b/sutysisku/sisku.js
@@ -57,6 +57,10 @@ function jmina_lo_se_claxu(doc) {
return doc;
}
+Object.keys(sorcu[bau]).forEach(function(a) {
+ sorcu[bau][a].w = a;
+});
+
window.storecache = {};
for (var i in sorcu[bau]){
window.storecache[i]=i+";"+Object.keys(sorcu[bau][i]).map(function(b) {
@@ -232,6 +236,8 @@ function sisku(query, callback) {
a = a.replace(/([aeiouy])\1/igm, "$1'$1");
var isdef = Object.keys(sorcu[bau]).filter(function(o) {
return (o.toLowerCase() === a.toLowerCase()) || (sorcu[bau][o]["d"].toLowerCase() === "{" + a.toLowerCase() + "}");
+ }).map(function(valsi) {
+ return sorcu[bau][valsi];
});
if (isdef && isdef.length > 0) {
ki = ki.concat(isdef);
tested in: