Filtering by a Field in an Array
TLDR Andrew asked how to filter by a field in an array. Jason provided the solution
animals:[cat] and a documentation link.
Feb 19, 2023 (7 months ago)
String animal = ‘cat’;
List<dynamic> animals = [dog, cat, fish,]
Filter by: animals:contains[cat]
Just pseudo code but i hope the point makes sense
Indexed 2776 threads (79% resolved)
Filtering Out Fields Using Array Parameter
Andrew asked how to filter fields based on an array parameter. Jason offered a solution, which Andrew found helpful.
Usage and Modification of Dynamic Routes in Typesense Documents
Ethan needed a way to perform exact queries through two fields in Typesense documents. Kishore Nallan demonstrated its possibility using the "filter_by". An issue was resolved via recommending that fields in 'query by' should be a string type.
Array Object Fields Filtering in Typesense
Sathya asked about filtering array object fields, with Kishore Nallan replying that Typesense requires fields to be indexed in a flattened form before queries can be made.