Web Dev Cody
Web Dev Cody2y ago

filter in or contains

How do I filter to find where values contain a substring?
4 Replies
Web Dev Cody
Web Dev CodyOP2y ago
Oh .search? Ok I need to define a search index and use withSearxhIndex
Michal Srb
Michal Srb2y ago
https://docs.convex.dev/text-search is the solution if you're ok with matching on exact words. https://docs.convex.dev/vector-search can enable semantic search. We don't have a full substring/prefix search yet, that would work on parts of words.
Full Text Search | Convex Developer Hub
Run search queries over your Convex documents
Vector Search | Convex Developer Hub
Run vector search queries on embeddings
SJ
SJ15mo ago
if a field is of data type array how to find a specific record based on that field containing a value? like includes method on an array
ian
ian15mo ago
not currently possible. you can make a "join table" instead though - search for that and there should be some good threads

Did you find this page helpful?