Lines Matching refs:pTerm
957 char *pTerm; /* text of the term. '\000' terminated. malloced */
958 int nTerm; /* Number of bytes in pTerm[] */
1350 * where term = [pTerm] and segment = [iSegment]
1353 static int term_select(fulltext_vtab *v, const char *pTerm, int nTerm,
1360 rc = sqlite3_bind_text(s, 1, pTerm, nTerm, SQLITE_STATIC);
1379 /* Load the segment doclists for term pTerm and merge them in
1381 ** there are no segments for pTerm, successfully returns an empty
1393 const char *pTerm, /* The term whose posting lists we want */
1394 int nTerm, /* Number of bytes in pTerm */
1402 rc = sqlite3_bind_text(s, 1, pTerm, nTerm, SQLITE_STATIC);
1442 values ([piRowid], [pTerm], [iSegment], [doclist])
1449 const char *pTerm, int nTerm,
1462 rc = sqlite3_bind_text(s, 2, pTerm, nTerm, SQLITE_STATIC);
2159 free(q->pTerms[i].pTerm);
2262 if( memcmp(aTerm[i].pTerm, zToken, nToken) ) continue;
2581 /* Return a DocList corresponding to the query term *pTerm. If *pTerm
2585 ** The result is stored in pTerm->doclist.
2597 rc = term_select_all(v, iColumn, pQTerm->pTerm, pQTerm->nTerm, pLeft);
2604 rc = term_select_all(v, iColumn, pQTerm[i].pTerm, pQTerm[i].nTerm, pRight);
2619 /* Add a new term pTerm[0..nTerm-1] to the query *q.
2621 static void queryAdd(Query *q, const char *pTerm, int nTerm){
2631 t->pTerm = malloc(nTerm+1);
2632 memcpy(t->pTerm, pTerm, nTerm);
2633 t->pTerm[nTerm] = 0;
3015 /* Update the %_terms table to map the term [pTerm] to the given rowid. */
3016 static int index_insert_term(fulltext_vtab *v, const char *pTerm, int nTerm,
3022 rc = term_select(v, pTerm, nTerm, iSegment, &iIndexRow, &doclist);
3027 rc = term_insert(v, NULL, pTerm, nTerm, iSegment, &doclist);
3049 while( (rc=term_insert(v, &iIndexRow, pTerm, nTerm, iSegment,
3058 rc2 = term_select(v, pTerm, nTerm, iSegment, &iSegmentRow, &old);