Lines Matching refs:terms

1847  * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.
1872 * At its simplest queries can just be a single term, e.g. `hello`, multiple terms are also supported
1876 * Wildcards can be included in terms to match one or more unspecified characters, these wildcards can
1885 * Modifiers can also be added to terms, lunr supports edit distance and boost modifiers on terms. A term
1893 * optionally contain 'bar'. Conversely a leading '-' sets the terms presence to prohibited, i.e. it must not
1911 * @example <caption>terms with presence modifiers</caption>
1962 // * process terms
1963 // * expand terms from token set
1989 * the case for terms with wildcards, we need to pass the clause
1991 * of processed terms. Pipeline functions may expand the passed
1996 terms = null,
2000 terms = this.pipeline.runString(clause.term, {
2004 terms = [clause.term]
2007 for (var m = 0; m < terms.length; m++) {
2008 var term = terms[m]
2020 * be used to intersect the indexes token set to get a list of terms
2143 * the clause terms presence is required in _any_ of the fields not _all_ of the
2179 * If the query is negated (contains only prohibited terms)
2182 * entirely prohibited terms to avoid any cost of getting all
2337 * @property {object} invertedIndex - The inverted index maps terms to document fields.
2342 * @property {lunr.Pipeline} searchPipeline - A pipeline for processing search terms before querying the index.
2346 * @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.
2404 * Fields can be boosted at build time. This allows terms within that field to have more
2410 * @param {number} [attributes.boost=1] - Boost applied to all terms within this field.
2466 * @param {number} [attributes.boost=1] - Boost applied to all terms within this document.
2482 terms = this.pipeline.run(tokens),
2490 this.fieldLengths[fieldRef] += terms.length
2493 for (var j = 0; j < terms.length; j++) {
2494 var term = terms[j]
2588 terms = Object.keys(termFrequencies),
2589 termsLength = terms.length
2596 var term = terms[j],
2724 var terms = Object.keys(otherMatchData.metadata)
2726 for (var i = 0; i < terms.length; i++) {
2727 var term = terms[i],
2872 * @property {number} [presence=lunr.Query.presence.OPTIONAL] - The terms presence in any matching documents.
2943 * The term will be converted to a string by calling `toString`. Multiple terms can be passed as an
2959 * @example <caption>using lunr.tokenizer to convert a string to tokens before using them as terms</caption>