chore: checkpoint ai search comments and i18n foundation

This commit is contained in:
2026-03-28 17:17:31 +08:00
parent d18a709987
commit ec96d91548
71 changed files with 9494 additions and 423 deletions

View File

@@ -174,7 +174,10 @@ pub async fn search(
[q.clone().into(), (limit as i64).into()],
);
match SearchResult::find_by_statement(statement).all(&ctx.db).await {
match SearchResult::find_by_statement(statement)
.all(&ctx.db)
.await
{
Ok(rows) => rows,
Err(_) => fallback_search(&ctx, &q, limit).await?,
}