Possible to filter based on array length?

I have a collection of objects, each having an array for ‘images’, and sometimes, this array is empty.

Right now, I am filtering items on the frontend, meaning that if I request 20 items, and 3 of those have an empty ‘images’ array, I’ll be left with 17, an uneven number of posts that ruins the UI.

Is it possible to filter based on array length? I couldn’t find it in the docs, after roaming it for a long time. I’m hoping I missed it, but I suspect it is simply sadly not possible with Algolia.

1 Like