Lines Matching defs:nCost
2214 int nCost = 0;
2219 rc = sqlite3Fts3SegReaderCost(pCsr, pSegcsr->apSegment[i], &nCost);
2221 pSegcsr->nCost = nCost;
2453 if( pSegcsr && pSegcsr->nCost<nMinCost ){
2455 nMinCost = pSegcsr->nCost;
2698 int nCost; /* Return value */
2702 nCost = 0;
2705 if( pSegcsr ) nCost += pSegcsr->nCost;
2708 nCost = fts3ExprCost(pExpr->pLeft) + fts3ExprCost(pExpr->pRight);
2710 return nCost;
2722 int nCost;
2733 (*ppExprCost)->nCost = fts3ExprCost(pExpr);
2832 if( pCand->pExpr && (pBest==0 || pCand->nCost<pBest->nCost) ){
2837 if( pBest->nCost>nDoc ){