Setup
1. Add a search index
convex/schema.ts
2. Query
convex/tasks.ts
How it ranks
Convex uses a BM25-derived scoring algorithm — more matches in the search field rank higher; rarer words get more weight than common ones. For semantic similarity (find similar items, not just keyword matches), use vector search.Limits
- One search field per index. To search both
titleandbody, either index a concatenated field or maintain two search indexes. - Filter fields combined with search support up to 16 fields.
Tips
Related
Vector search
Semantic alternative.
Algolia
Hosted search with more features.
Schema
Search index syntax.
