• Home
  • Raw
  • Download

Lines Matching refs:fieldName

150 lunr.FieldRef = function (docRef, fieldName, stringValue) {  argument
152 this.fieldName = fieldName
173 this._stringValue = this.fieldName + lunr.FieldRef.joiner + this.docRef
322 for (var fieldName in posting) {
323 if (fieldName == '_index') continue // Ignore the term index, its not a field
324 documentsWithTerm += Object.keys(posting[fieldName]).length
2219 score = queryVectors[fieldRef.fieldName].similarity(fieldVector),
2414 lunr.Builder.prototype.field = function (fieldName, attributes) { argument
2415 if (/\//.test(fieldName)) {
2416 throw new RangeError ("Field '" + fieldName + "' contains illegal character '/'")
2419 this._fields[fieldName] = attributes || {}
2476 var fieldName = fields[i],
2477 extractor = this._fields[fieldName].extractor,
2478 field = extractor ? extractor(doc) : doc[fieldName],
2480 fields: [fieldName]
2483 fieldRef = new lunr.FieldRef (docRef, fieldName),
2517 if (this.invertedIndex[term][fieldName][docRef] == undefined) {
2518 this.invertedIndex[term][fieldName][docRef] = Object.create(null)
2527 if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {
2528 this.invertedIndex[term][fieldName][docRef][metadataKey] = []
2531 this.invertedIndex[term][fieldName][docRef][metadataKey].push(metadata)
2552 field = fieldRef.fieldName
2564 var fieldName = fields[i]
2565 accumulator[fieldName] = accumulator[fieldName] / documentsWithField[fieldName]
2584 fieldName = fieldRef.fieldName,
2592 var fieldBoost = this._fields[fieldName].boost || 1,
2608 …f) / (this._k1 * (1 - this._b + this._b * (fieldLength / this.averageFieldLength[fieldName])) + tf)