Queries for Array-Contains Filter
TLDR Andrew wanted to know if there is a parameter for an array-contains filter. Kishore Nallan provided the solution to the query.
Powered by Struct AI
3
14mo
Nov 02, 2022 (14 months ago)
Andrew
Andrew
02:49 PMIs there a parameter for an array-contains filter? For instance, return all users where the string Id is not found in a user's array of seenIds
Kishore Nallan
Kishore Nallan
03:51 PMIf you have a seenIds field that's a string array you can do seenIds:!= foo
Andrew
Andrew
06:04 PMAwesome, thanks!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
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.
4
14mo
Filtering Search Results by Array Value in User Data
Michael.M needed guidance searching dataset by array values. Jason pointed to relevant `filter_by` documentation. Michael.M realized their confusion stemmed from an older API version reference. Alexander gave advice on handling outdated Google search results.
8
20mo
Filtering by a Field in an Array
Andrew asked how to filter by a field in an array. Jason provided the solution `animals:[cat]` and a documentation link.
4
10mo