Hi, I am trying to integrate typesense into my pro...
# community-help
b
Hi, I am trying to integrate typesense into my project using Firebase. i added the extension in firebase, the backfill ran and sent data to typsense i can see 55mb bandwidth used, but the collection is not showing up. I have created the collection too. Also, i am able to make a request from client no problems. So just having issues getting data to typesense. Anyone know of common problems with this? Thanks
j
@Bobby Keel You should hopefully see more detailed info in the function logs, for the extension. Could you share the last several lines?
b
92054.742 PM outlined_flaggmp_mods ext-firestore-typesense-search-backfillToTypesenseFromFirestore Function execution started 92054.750 PM infogmp_mods ext-firestore-typesense-search-backfillToTypesenseFromFirestore Backfilling fields in Firestore documents from typesense into Typesense Collection wurkers on 8vhgabwrmky6pz7cp-1.a1.typesense.net 92054.842 PM infogmp_mods ext-firestore-typesense-search-backfillToTypesenseFromFirestore Done backfilling to Typesense from Firestore 92054.843 PM outlined_flaggmp_mods ext-firestore-typesense-search-backfillToTypesenseFromFirestore Function execution took 101 ms. Finished with status: ok
j
Backfill seems to have worked fine according to those logs. May I know how many documents are in your Firestore collection, and how many show up in Typesense after you run the backfill?
b
I think I put the back fill in wrong spot in firestore. is it supposed to go inside the collection you want to backfill, or inside the root firestore? no documents show up from firebase, I added a few manually to typesense to check client side was working.
backfilling 100 documents
j
is it supposed to go inside the collection you want to backfill, or inside the root firestore?
You'd create a new Firestore collection called "typesense_sync" and put the backfill flag there
Also to re-trigger a backfill, you want to delete that key completely and then create it again. Just toggling the values doesn't work
b
ok. thats what i did
j
The other thing to check is if the Firestore collection name in the extension settings is correct
b
ok. I deleted the typsense_sync and readded it. that was the second backfill I tried.
j
Does adding a new document to the Firestore collection sync things over, or is it just the backfill?
b
just backfill worked. I tried adding a new document and it did not run the other function.
well backfill function ran but no data i mean
j
I suspected that it might have to do with a new version of the extension released a few hours ago, but I just tried running the backfill function on a test project and it imported the docs successfully into Typesense...
Usually there's a log line that says how many documents were found for import when running backfill. And I don't see it in what you shared... So it's likely that the Firestore collection path is not configured right in the extension settings. Could you share a screen shot of your extension configuration page?
b
I just uninstalled and trying reinstall but these are images i took before of all settings.
j
Ah yes, the "Firestore Collection Path" is set to "typesense". You probably wanted to set that to "wurkers" if your intention is to sync that Firestore collection
b
ok. I will try that
I think this is working now, just getting schema errors, but i can handle those. Thank you. So far this is pretty easy to implement.
j
That's great to hear! Thank you for the feedback!
b
Your welcome. Definitely working now, getting results to client from firebase now.
👍 1