Michael.M
05/06/2022, 6:59 PM{
...
name: 'John Deere',
organizationIds: [123, 234, 456]
},
{
...
name: 'Jane Doe',
organizationIds: [890, 765]
}
When I make the search, I would like to search by name
, But I only want to see results for documents that have 123
in their organizationIds array. So in the case above I would type “J” in the search input, but only John Deere
would be returned.
I see that I can use filter_by
in the search options. However, it doesn’t look like I can do any sort of array check like value in array
. What is the best way to handle this?Jason Bosco
05/06/2022, 7:03 PMfilter_by
row in this table: https://typesense.org/docs/0.22.2/api/documents.html#query-parameters
Search for "Filtering Arrays"Michael.M
05/06/2022, 7:06 PMMichael.M
05/06/2022, 7:06 PMMichael.M
05/06/2022, 7:09 PMJason Bosco
05/06/2022, 7:10 PMMichael.M
05/06/2022, 7:12 PMAlexander Zierhut
05/08/2022, 2:43 PM