<@U01NZ4D0LDD> Hi Jason, With the Firebase Extensi...
# community-help
l
@Jason Bosco Hi Jason, With the Firebase Extension (https://github.com/typesense/firestore-typesense-search#step-3%EF%B8%8F%E2%83%A3--optional-backfill-existing-data) can we backfill a specific collection and not all at once?
j
Ah hmm, not at the moment unfortunately. Could you open an issue on Github in that repo with this feature request?
l
Just did 👍
@Jason Bosco Also in new collection schema, it automatically ignore my field
id
Copy code
"fields": [
      {
        "name": "id",
        "type": "string",
        "index": true
      },
…
Is this an expected behavior? 🤔
j
Yes this is expected. If you want to search by the ID field, you want to duplicate that in a new field
l
OK, thank you 👍
I please need your advice on the collection schema If I know that I will query by
FieldA
but never by
FieldB
, what should be the difference in
Copy code
"fields": [
      {
        "name": "FieldA",
        "type": "string",
        "index": true
      },{
        "name": "FieldB",
        "type": "string",
        "index": true
      },
…
j
You can just leave FieldB out of the schema
Only fields you want to search / filter / facet / sort need to be part of the schema
l
When I tried this I didn’t receive the field from Firestore 🤔
Because I still want to store and return in my search the ``FieldB``
But not use it to query
j
All other fields can still be part of your document, they'll be stored on disk and returned in results
When I tried this I didn’t receive the field from Firestore
If you want to sync all fields over from Firestore, you want to leave the fields configuration in the extension blank
l
In firestore I have
FieldA
,
FieldB
and
FieldC
I would like to have in typesense
FieldA
&
FieldB
stored Query by
FieldA
only and return
FieldA
&
FieldB
in the results
j
Got it, then in the Firebase Extension configuration, you want to mention
FieldA,FieldB
in the list of fields. Then in Typesense, only add
FieldA
to the schema
l
👍 Perfect I will try it out