#community-help

Filtering Records in Typesense Using int32 Array

TLDR ovrays faced issues with filtering records in Typesense using an int32 array. Kishore Nallan advised verifying the field name and version of Typesense. The problem was resolved when ovrays recreated their document.

Powered by Struct AI

1

4
31mo
Solved
Join the chat
May 07, 2021 (31 months ago)
ovrays
Photo of md5-5e8b8f68e99cab621c682af5bb6537b1
ovrays
09:17 AM
Hi, can typesense filter records by value in array?
I have int32[] field genres, and when i try to run search with filter_by=genres:[1] or something like that i gen an 404 error (not found)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:26 AM
ovrays Yes Typesense does allow filtering on int32 array. Can you please tell me what version of Typesense you are using?
09:39
Kishore Nallan
09:39 AM
404 is returned when field is not found. Check if there is a typo. The specific error is returned in the 404 response body.
ovrays
Photo of md5-5e8b8f68e99cab621c682af5bb6537b1
ovrays
11:43 AM
Thank you for your answer, I'm forget to re-create my document. Now it works correctly 😉

1