Lines Matching refs:iColumn
306 static void addPos(DocList *d, int iColumn, int iPos){
309 if( iColumn!=d->iLastColumn ){
310 assert( iColumn>d->iLastColumn );
312 appendVarint(d, iColumn);
313 d->iLastColumn = iColumn;
322 static void docListAddPos(DocList *d, int iColumn, int iPos){
324 addPos(d, iColumn, iPos);
336 int iColumn, /* Column the inserted term is part of */
342 addPos(d, iColumn, iPos);
420 static int readPosition(DocListReader *pReader, int *iColumn){
435 *iColumn = -1;
451 *iColumn = pReader->iLastColumn;
459 int iColumn;
460 while( readPosition(pReader, &iColumn)!=-1 ){}
536 int iPos, iColumn;
539 while( (iPos = readPosition(&r, &iColumn)) != -1 ){
540 if( iColumn==iRestrictColumn ){
541 docListAddPos(&out, iColumn, iPos);
565 int iPos, iColumn;
566 while( (iPos = readPosition(&r, &iColumn)) != -1 ){
571 docListAddPos(&out, iColumn, iPos);
954 short int iColumn; /* Column of the index that must match this term */
1112 int iColumn; /* Column being searched */
1385 ** columns is v->nColumn. If iColumn==v->nColumn, then return
1386 ** position information about all columns. If iColumn<v->nColumn,
1387 ** then only return position information about the iColumn-th column
1392 int iColumn, /* If <nColumn, only look at the iColumn-th column */
1420 if( iColumn<v->nColumn ){ /* querying a single column */
1421 docListRestrictColumn(&old, iColumn);
2095 if( pConstraint->iColumn==-1 &&
2099 } else if( pConstraint->iColumn>=0 &&
2102 pInfo->idxNum = QUERY_FULLTEXT + pConstraint->iColumn;
2103 TRACE(("FTS1 QUERY_FULLTEXT %d\n", pConstraint->iColumn));
2209 ** document zDoc[0..nDoc-1] which is stored in column iColumn.
2214 int iColumn,
2259 iCol = aTerm[i].iColumn;
2260 if( iCol>=0 && iCol<nColumn && iCol!=iColumn ) continue;
2268 snippetAppendMatch(pSnippet, iColumn, i-j,
2286 int iColumn, i;
2294 iColumn = p->iCursorType - QUERY_FULLTEXT;
2295 if( iColumn<0 || iColumn>=nColumn ){
2299 iFirst = iColumn;
2300 iLast = iColumn;
2589 int iColumn, /* column to restrict to. No restrition if >=nColumn */
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);
2637 t->iColumn = q->nextColumn;
2772 ** Queries must match column iColumn. Or if iColumn>=nColumn
2777 int iColumn, /* Match against this column by default */
2789 rc = parseQuery(v, zInput, nInput, iColumn, pQuery);
2802 rc = docListOfTerm(v, aTerm[i].iColumn, &aTerm[i], &pRight);
2808 rc = docListOfTerm(v, aTerm[iNext].iColumn, &aTerm[iNext], &pOr);
2839 rc = docListOfTerm(v, aTerm[i].iColumn, &aTerm[i], &pRight);
2967 /* Add all terms in [zText] to the given hash table. If [iColumn] > 0,
2971 const char *zText, int iColumn){
3001 if( iColumn>=0 ){
3002 docListAddPosOffset(p, iColumn, iPosition, iStartOffset, iEndOffset);