#community-help

Handling Deep Nested Objects in Firestore with Typesense

TLDR Saran asked for solutions to save deep nested objects in Firestore. Kishore Nallan suggested flattening before indexing. Jason added that the latest Firestore Typesense extension automatically flattens the data.

Powered by Struct AI
Jun 14, 2022 (19 months ago)
Saran
Photo of md5-6443a90d81bb4ad8815469b40b7faf04
Saran
02:24 PM
Typesense need only flat object to be saved.. we have deep nested object with array in Firestore. What is your suggestion ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:26 PM
You've to flatten it out before indexing. We plan to work on nested fields support soon.
Saran
Photo of md5-6443a90d81bb4ad8815469b40b7faf04
Saran
02:26 PM
thanks
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:28 PM
Saran the latest version of the Firestore Typesense extension does the flattening for you before sending the data to Typesense