typesense icon indicating copy to clipboard operation
typesense copied to clipboard

Allow filtering based on size of arrays

Open shaunbyrnes opened this issue 5 months ago • 0 comments

Hey guys,

We have the situation where some of the TS collections synced from the source DB Firestore have sub collections. The sub collections of course don't come across, but are sometimes needed to be considered in the queries that we perform.

Currently we have some arrays in the root level collection in Firebase/Firestore that store IDs for docs in the sub collections so they can be referenced, such as items[]. These arrays are at least already being written to, so if we could filter on the array length or items in the array with something like filter_by: count(items) >= 0 or the like, would be great.

shaunbyrnes avatar May 07 '25 11:05 shaunbyrnes