Filtering Out Fields Using Array Parameter
TLDR Andrew asked how to filter fields based on an array parameter. Jason offered a solution, which Andrew found helpful.
Powered by Struct AI
4
14mo
Nov 04, 2022 (14 months ago)
Andrew
Andrew
04:05 PMIs there a way to filter out a field based on an array parameter? For instance, something like Id: != (array of string Ids)
Paul
Paul
04:10 PMIs this what you are after https://github.com/typesense/typesense/issues/256#issuecomment-1064634616
Jason
Jason
04:29 PMId:!=[id1,id2]
should workAndrew
Andrew
08:00 PMGot ha, ty!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Queries for Array-Contains Filter
Andrew wanted to know if there is a parameter for an array-contains filter. Kishore Nallan provided the solution to the query.
3
14mo
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
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.
2
22mo