Lines Matching refs:clause
1414 lunr.TokenSet.fromClause = function (clause) { argument
1415 if ('editDistance' in clause) {
1416 return lunr.TokenSet.fromFuzzyString(clause.term, clause.editDistance)
1418 return lunr.TokenSet.fromString(clause.term)
1995 var clause = query.clauses[i],
1999 if (clause.usePipeline) {
2000 terms = this.pipeline.runString(clause.term, {
2001 fields: clause.fields
2004 terms = [clause.term]
2016 clause.term = term
2023 var termTokenSet = lunr.TokenSet.fromClause(clause),
2032 if (expandedTerms.length === 0 && clause.presence === lunr.Query.presence.REQUIRED) {
2033 for (var k = 0; k < clause.fields.length; k++) {
2034 var field = clause.fields[k]
2050 for (var k = 0; k < clause.fields.length; k++) {
2059 var field = clause.fields[k],
2070 if (clause.presence == lunr.Query.presence.REQUIRED) {
2083 if (clause.presence == lunr.Query.presence.PROHIBITED) {
2105 queryVectors[field].upsert(termIndex, clause.boost, function (a, b) { return a + b })
2146 if (clause.presence === lunr.Query.presence.REQUIRED) {
2147 for (var k = 0; k < clause.fields.length; k++) {
2148 var field = clause.fields[k]
2885 lunr.Query.prototype.clause = function (clause) { method in lunr.Query
2886 if (!('fields' in clause)) {
2887 clause.fields = this.allFields
2890 if (!('boost' in clause)) {
2891 clause.boost = 1
2894 if (!('usePipeline' in clause)) {
2895 clause.usePipeline = true
2898 if (!('wildcard' in clause)) {
2899 clause.wildcard = lunr.Query.wildcard.NONE
2902 …if ((clause.wildcard & lunr.Query.wildcard.LEADING) && (clause.term.charAt(0) != lunr.Query.wildca…
2903 clause.term = "*" + clause.term
2906 …if ((clause.wildcard & lunr.Query.wildcard.TRAILING) && (clause.term.slice(-1) != lunr.Query.wildc…
2907 clause.term = "" + clause.term + "*"
2910 if (!('presence' in clause)) {
2911 clause.presence = lunr.Query.presence.OPTIONAL
2914 this.clauses.push(clause)
2968 var clause = options || {}
2969 clause.term = term.toString()
2971 this.clause(clause)
3224 this.query.clause(completedClause)