# Ingest data from Firebase Firestore collection and subcollection to Elastic App Search engine

**URL:** <https://discuss.elastic.co/t/ingest-data-from-firebase-firestore-collection-and-subcollection-to-elastic-app-search-engine/326557>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 27, 2023, 9:31am UTC](https://discuss.elastic.co/t/ingest-data-from-firebase-firestore-collection-and-subcollection-to-elastic-app-search-engine/326557 "2023-02-27T09:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rustin\_Spencer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rustin_spencer/32/103495_2.png) [@Rustin\_Spencer](https://discuss.elastic.co/u/Rustin_Spencer)\
**Post date:** [February 27, 2023, 9:31am UTC](https://discuss.elastic.co/t/ingest-data-from-firebase-firestore-collection-and-subcollection-to-elastic-app-search-engine/326557/1 "2023-02-27T09:31:17Z")

</div>

I'm using Firebase extension Elastic App Search, feeding my collection to the engine. Is it possible to ingest the whole collection and all subcollection inside it?

---

<div class="post-metadata">

**Author:** ![Scot\_Clausing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scot_clausing/32/98028_2.png) [@Scot\_Clausing](https://discuss.elastic.co/u/Scot_Clausing)\
**Post date:** [March 2, 2023, 1:15pm UTC](https://discuss.elastic.co/t/ingest-data-from-firebase-firestore-collection-and-subcollection-to-elastic-app-search-engine/326557/2 "2023-03-02T13:15:08Z")

</div>

HI! I have looked into the provided backfill script.

> **[app-search-firestore-extension/functions/src/bin at master ·...](https://github.com/elastic/app-search-firestore-extension/tree/master/functions/src/bin)**
>
> master/functions/src/bin

It appears this implementation will not recursively list and query per-document subcollections, as that would significantly increase the number of calls to Firebase and similarly extend the time to run the script.

This alternative approach could be an interesting community contribution.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 30, 2023, 1:15pm UTC](https://discuss.elastic.co/t/ingest-data-from-firebase-firestore-collection-and-subcollection-to-elastic-app-search-engine/326557/3 "2023-03-30T13:15:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
