Lines Matching refs:pTerms
993 QueryTerm *pTerms; /* Array of terms. Space obtained from malloc() */
1010 short int iTerm; /* The index in Query.pTerms[] of the matching term */
2159 free(q->pTerms[i].pTerm);
2161 free(q->pTerms);
2245 aTerm = pQuery->pTerms;
2624 q->pTerms = realloc(q->pTerms, q->nTerms * sizeof(q->pTerms[0]));
2625 if( q->pTerms==0 ){
2629 t = &q->pTerms[q->nTerms - 1];
2708 pQuery->pTerms[pQuery->nTerms-1].isNot = 1;
2710 pQuery->pTerms[pQuery->nTerms-1].iPhrase = nTerm;
2717 pQuery->pTerms[firstIndex].nPhrase = pQuery->nTerms - firstIndex - 1;
2740 pQuery->pTerms = NULL;
2793 aTerm = pQuery->pTerms;
3095 * table [pTerms]. */
3096 static int deleteTerms(fulltext_vtab *v, fts1Hash *pTerms, sqlite_int64 iRowid){
3104 rc = buildTerms(v, pTerms, iRowid, pValues[i], -1);
3113 * new row. Fill [pTerms] with new doclists for the %_term table. */
3116 sqlite_int64 *piRowid, fts1Hash *pTerms){
3122 return insertTerms(v, pTerms, *piRowid, pValues);
3125 /* Delete a row from the %_content table; fill [pTerms] with empty doclists
3127 static int index_delete(fulltext_vtab *v, sqlite_int64 iRow, fts1Hash *pTerms){
3128 int rc = deleteTerms(v, pTerms, iRow);
3133 /* Update a row in the %_content table; fill [pTerms] with new doclists for the
3136 sqlite3_value **pValues, fts1Hash *pTerms){
3139 int rc = deleteTerms(v, pTerms, iRow);
3146 return insertTerms(v, pTerms, iRow, pValues);