mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat(lunr): some optimizing lib/lunr/*.js (#367)
This commit is contained in:
parent
e5ae1d696b
commit
c1016df5d6
20 changed files with 38 additions and 38 deletions
|
@ -2,7 +2,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;(function (root, factory) {
|
(function (root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define(factory)
|
define(factory)
|
||||||
|
@ -203,4 +203,4 @@
|
||||||
lunr.TinySegmenter = TinySegmenter;
|
lunr.TinySegmenter = TinySegmenter;
|
||||||
};
|
};
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -378,4 +378,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ar.stopWordFilter, 'stopWordFilter-ar');
|
lunr.Pipeline.registerFunction(lunr.ar.stopWordFilter, 'stopWordFilter-ar');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -281,4 +281,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.da.stopWordFilter, 'stopWordFilter-da');
|
lunr.Pipeline.registerFunction(lunr.da.stopWordFilter, 'stopWordFilter-da');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -381,4 +381,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.de.stopWordFilter, 'stopWordFilter-de');
|
lunr.Pipeline.registerFunction(lunr.de.stopWordFilter, 'stopWordFilter-de');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -447,4 +447,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.du.stopWordFilter, 'stopWordFilter-du');
|
lunr.Pipeline.registerFunction(lunr.du.stopWordFilter, 'stopWordFilter-du');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -596,4 +596,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.es.stopWordFilter, 'stopWordFilter-es');
|
lunr.Pipeline.registerFunction(lunr.es.stopWordFilter, 'stopWordFilter-es');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -700,4 +700,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.fr.stopWordFilter, 'stopWordFilter-fr');
|
lunr.Pipeline.registerFunction(lunr.fr.stopWordFilter, 'stopWordFilter-fr');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -562,4 +562,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.hu.stopWordFilter, 'stopWordFilter-hu');
|
lunr.Pipeline.registerFunction(lunr.hu.stopWordFilter, 'stopWordFilter-hu');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -614,4 +614,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.it.stopWordFilter, 'stopWordFilter-it');
|
lunr.Pipeline.registerFunction(lunr.it.stopWordFilter, 'stopWordFilter-it');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -185,4 +185,4 @@
|
||||||
lunr.Pipeline.registerFunction(lunr.jp.trimmer, 'trimmer-jp');
|
lunr.Pipeline.registerFunction(lunr.jp.trimmer, 'trimmer-jp');
|
||||||
lunr.Pipeline.registerFunction(lunr.jp.stopWordFilter, 'stopWordFilter-jp');
|
lunr.Pipeline.registerFunction(lunr.jp.stopWordFilter, 'stopWordFilter-jp');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -445,4 +445,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.nl.stopWordFilter, 'stopWordFilter-nl');
|
lunr.Pipeline.registerFunction(lunr.nl.stopWordFilter, 'stopWordFilter-nl');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -255,4 +255,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.no.stopWordFilter, 'stopWordFilter-no');
|
lunr.Pipeline.registerFunction(lunr.no.stopWordFilter, 'stopWordFilter-no');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -567,4 +567,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.pt.stopWordFilter, 'stopWordFilter-pt');
|
lunr.Pipeline.registerFunction(lunr.pt.stopWordFilter, 'stopWordFilter-pt');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -388,4 +388,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.ru.stopWordFilter, 'stopWordFilter-ru');
|
lunr.Pipeline.registerFunction(lunr.ru.stopWordFilter, 'stopWordFilter-ru');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;(function (root, factory) {
|
(function (root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define(factory)
|
define(factory)
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -253,4 +253,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.sv.stopWordFilter, 'stopWordFilter-sv');
|
lunr.Pipeline.registerFunction(lunr.sv.stopWordFilter, 'stopWordFilter-sv');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -1084,4 +1084,4 @@
|
||||||
|
|
||||||
lunr.Pipeline.registerFunction(lunr.tr.stopWordFilter, 'stopWordFilter-tr');
|
lunr.Pipeline.registerFunction(lunr.tr.stopWordFilter, 'stopWordFilter-tr');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -81,4 +81,4 @@
|
||||||
lunr.Pipeline.registerFunction(lunr.vi.trimmer, 'trimmer-vi');
|
lunr.Pipeline.registerFunction(lunr.vi.trimmer, 'trimmer-vi');
|
||||||
lunr.vi.stopWordFilter = lunr.generateStopWordFilter('là cái nhưng mà'.split(' '));
|
lunr.vi.stopWordFilter = lunr.generateStopWordFilter('là cái nhưng mà'.split(' '));
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* export the module via AMD, CommonJS or as a browser global
|
* export the module via AMD, CommonJS or as a browser global
|
||||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||||
*/
|
*/
|
||||||
;
|
|
||||||
(function(root, factory) {
|
(function(root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
|
@ -138,4 +138,4 @@
|
||||||
'的 一 不 在 人 有 是 为 以 于 上 他 而 后 之 来 及 了 因 下 可 到 由 这 与 也 此 但 并 个 其 已 无 小 我 们 起 最 再 今 去 好 只 又 或 很 亦 某 把 那 你 乃 它 吧 被 比 别 趁 当 从 到 得 打 凡 儿 尔 该 各 给 跟 和 何 还 即 几 既 看 据 距 靠 啦 了 另 么 每 们 嘛 拿 哪 那 您 凭 且 却 让 仍 啥 如 若 使 谁 虽 随 同 所 她 哇 嗡 往 哪 些 向 沿 哟 用 于 咱 则 怎 曾 至 致 着 诸 自'.split(' '));
|
'的 一 不 在 人 有 是 为 以 于 上 他 而 后 之 来 及 了 因 下 可 到 由 这 与 也 此 但 并 个 其 已 无 小 我 们 起 最 再 今 去 好 只 又 或 很 亦 某 把 那 你 乃 它 吧 被 比 别 趁 当 从 到 得 打 凡 儿 尔 该 各 给 跟 和 何 还 即 几 既 看 据 距 靠 啦 了 另 么 每 们 嘛 拿 哪 那 您 凭 且 却 让 仍 啥 如 若 使 谁 虽 随 同 所 她 哇 嗡 往 哪 些 向 沿 哟 用 于 咱 则 怎 曾 至 致 着 诸 自'.split(' '));
|
||||||
lunr.Pipeline.registerFunction(lunr.zh.stopWordFilter, 'stopWordFilter-zh');
|
lunr.Pipeline.registerFunction(lunr.zh.stopWordFilter, 'stopWordFilter-zh');
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue