mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Defer building xInstToken() hash-table until it is to be used.
FossilOrigin-Name: 9b005085ff4a53cda0a1dff0c836630d6d3b95b9c40658ffd2a886f3e1b37faa
This commit is contained in:
@ -3044,7 +3044,6 @@ int sqlite3Fts5ExprPopulatePoslists(
|
||||
const char *z, int n
|
||||
){
|
||||
int i;
|
||||
int rc = SQLITE_OK;
|
||||
Fts5ExprCtx sCtx;
|
||||
sCtx.pExpr = pExpr;
|
||||
sCtx.aPopulator = aPopulator;
|
||||
@ -3073,20 +3072,9 @@ int sqlite3Fts5ExprPopulatePoslists(
|
||||
}
|
||||
}
|
||||
|
||||
rc = sqlite3Fts5Tokenize(pConfig,
|
||||
return sqlite3Fts5Tokenize(pConfig,
|
||||
FTS5_TOKENIZE_DOCUMENT, z, n, (void*)&sCtx, fts5ExprPopulatePoslistsCb
|
||||
);
|
||||
|
||||
if( pConfig->bTokendata ){
|
||||
for(i=0; i<pExpr->nPhrase; i++){
|
||||
Fts5ExprTerm *pT;
|
||||
for(pT=&pExpr->apExprPhrase[i]->aTerm[0]; pT; pT=pT->pSynonym){
|
||||
sqlite3Fts5IndexIterHashifyTokendata(pT->pIter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void fts5ExprClearPoslists(Fts5ExprNode *pNode){
|
||||
|
Reference in New Issue
Block a user