Lines Matching defs:utils
59 * lunr.utils
64 * A namespace containing utils for the rest of the lunr library
65 * @namespace lunr.utils
67 lunr.utils = {}
73 * @memberOf lunr.utils
76 lunr.utils.warn = (function (global) {
95 * @memberOf lunr.utils
97 lunr.utils.asString = function (obj) {
121 lunr.utils.clone = function (obj) {
421 lunr.utils.asString(t).toLowerCase(),
422 lunr.utils.clone(metadata)
438 var tokenMetadata = lunr.utils.clone(metadata) || {}
541 lunr.utils.warn('Overwriting existing registered function: ' + label)
558 lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\n', fn)
2289 lunr.utils.warn("Version mismatch when loading serialised index. Current version of lunr '" + lunr.version + "' does not match serialized index '" + serializedIndex.version + "'")
2964 term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)