Lines Matching refs:attrs
1842 * @param {Object} attrs - The attributes of the built search index.
1843 * @param {Object} attrs.invertedIndex - An index of term/field to document reference.
1844 * @param {Object<string, lunr.Vector>} attrs.fieldVectors - Field vectors
1845 * @param {lunr.TokenSet} attrs.tokenSet - An set of all corpus tokens.
1846 * @param {string[]} attrs.fields - The names of indexed document fields.
1847 * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.
1849 lunr.Index = function (attrs) {
1850 this.invertedIndex = attrs.invertedIndex
1851 this.fieldVectors = attrs.fieldVectors
1852 this.tokenSet = attrs.tokenSet
1853 this.fields = attrs.fields
1854 this.pipeline = attrs.pipeline
2280 var attrs = {},
2311 attrs.fields = serializedIndex.fields
2313 attrs.fieldVectors = fieldVectors
2314 attrs.invertedIndex = invertedIndex
2315 attrs.tokenSet = tokenSetBuilder.root
2316 attrs.pipeline = pipeline
2318 return new lunr.Index(attrs)