Lines Matching refs:nTerms
992 int nTerms; /* Number of terms in the query */
2158 for(i = 0; i < q->nTerms; ++i){
2246 nTerm = pQuery->nTerms;
2291 if( p->q.nTerms==0 ) return;
2440 for(i=0; i<pCursor->q.nTerms; i++){
2623 ++q->nTerms;
2624 q->pTerms = realloc(q->pTerms, q->nTerms * sizeof(q->pTerms[0]));
2626 q->nTerms = 0;
2629 t = &q->pTerms[q->nTerms - 1];
2679 int firstIndex = pQuery->nTerms;
2701 if( !inPhrase && pQuery->nTerms>0 && nToken==2
2708 pQuery->pTerms[pQuery->nTerms-1].isNot = 1;
2710 pQuery->pTerms[pQuery->nTerms-1].iPhrase = nTerm;
2716 if( inPhrase && pQuery->nTerms>firstIndex ){
2717 pQuery->pTerms[firstIndex].nPhrase = pQuery->nTerms - firstIndex - 1;
2739 pQuery->nTerms = 0;
2794 for(i = 0; i<pQuery->nTerms; i=iNext){
2807 while( iNext<pQuery->nTerms && aTerm[iNext].isOr ){
2837 for(i=0; i<pQuery->nTerms; i += aTerm[i].nPhrase + 1){