Lines Matching refs:pIdxInfo
2217 static int spellfix1BestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ in spellfix1BestIndex() argument
2226 pConstraint = pIdxInfo->aConstraint; in spellfix1BestIndex()
2227 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in spellfix1BestIndex()
2236 pIdxInfo->aConstraintUsage[i].argvIndex = 1; in spellfix1BestIndex()
2237 pIdxInfo->aConstraintUsage[i].omit = 1; in spellfix1BestIndex()
2292 pIdxInfo->idxNum = iPlan; in spellfix1BestIndex()
2293 if( pIdxInfo->nOrderBy==1 in spellfix1BestIndex()
2294 && pIdxInfo->aOrderBy[0].iColumn==SPELLFIX_COL_SCORE in spellfix1BestIndex()
2295 && pIdxInfo->aOrderBy[0].desc==0 in spellfix1BestIndex()
2297 pIdxInfo->orderByConsumed = 1; /* Default order by iScore */ in spellfix1BestIndex()
2300 pIdxInfo->aConstraintUsage[iLangTerm].argvIndex = idx++; in spellfix1BestIndex()
2301 pIdxInfo->aConstraintUsage[iLangTerm].omit = 1; in spellfix1BestIndex()
2304 pIdxInfo->aConstraintUsage[iTopTerm].argvIndex = idx++; in spellfix1BestIndex()
2305 pIdxInfo->aConstraintUsage[iTopTerm].omit = 1; in spellfix1BestIndex()
2308 pIdxInfo->aConstraintUsage[iScopeTerm].argvIndex = idx++; in spellfix1BestIndex()
2309 pIdxInfo->aConstraintUsage[iScopeTerm].omit = 1; in spellfix1BestIndex()
2312 pIdxInfo->aConstraintUsage[iDistTerm].argvIndex = idx++; in spellfix1BestIndex()
2313 pIdxInfo->aConstraintUsage[iDistTerm].omit = 1; in spellfix1BestIndex()
2315 pIdxInfo->estimatedCost = 1e5; in spellfix1BestIndex()
2317 pIdxInfo->idxNum = SPELLFIX_IDXNUM_ROWID; in spellfix1BestIndex()
2318 pIdxInfo->aConstraintUsage[iRowidTerm].argvIndex = 1; in spellfix1BestIndex()
2319 pIdxInfo->aConstraintUsage[iRowidTerm].omit = 1; in spellfix1BestIndex()
2320 pIdxInfo->estimatedCost = 5; in spellfix1BestIndex()
2322 pIdxInfo->idxNum = 0; in spellfix1BestIndex()
2323 pIdxInfo->estimatedCost = 1e50; in spellfix1BestIndex()