Lines Matching refs:doc
28 * documents.forEach(function (doc) {
29 * this.add(doc)
2390 * @param {object} doc - The document being added to the index.
2393 * function (doc) { return doc.nested.field }
2464 * @param {object} doc - The document to add to the index.
2468 lunr.Builder.prototype.add = function (doc, attributes) {
2469 var docRef = doc[this._ref],
2478 field = extractor ? extractor(doc) : doc[fieldName],