#community-help

Querying Document IDs in Typesense Using Firebase Extension

TLDR Vera was having trouble querying document IDs in Typesense. Jason suggested including it explicitly in the collection schema in Typesense.

Powered by Struct AI
3
29mo
Solved
Join the chat
Aug 31, 2021 (29 months ago)
Vera
Photo of md5-9705f56a1717a43e33fa1a08fce4c4ba
Vera
04:03 PM
I’m using the Firebase extension to link Typesense to my Firestore database. I notice that Document IDs are stored in Typesense, but I cant seem to query by them. Maybe Typesense isn’t the solution here, but one application I have is to turn a list of Document IDs into a list of the other associated fields in the Typesense cluster. I’m using Typesense in more traditional ways as well, but I was wondering if something like this would be possible
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:39 PM
Vera if you want to query by id, you’d need to also include it explicitly in the collection schema in Typesense.
Vera
Photo of md5-9705f56a1717a43e33fa1a08fce4c4ba
Vera
05:01 PM
I figured as much. Thank you!