I'm hoping someone might have some insight into an...
# community-help
t
I'm hoping someone might have some insight into an issue I'm facing and unable to get past. I'm using the TypeSense Firestore Extension in Firebase (typesense/firestore-typesense-search@2.0.1). I've installed and configured the extension in Firebase. I create a TypeSense collection in TypeSense Cloud. I've included the schema below. Each time I try to sync my Firebase collection with the TypeSense collection by adding a "typesense_sync" collection in Firestore and adding record to to the collection with id = backfill and trigger = true I get errors in the Firebase Functions logs like this: "Error importing document with error: Field
uid
has been declared in the schema, but is not found in the document." But - I am certain that a uid field is in every one of the 15 documents in the Firestore collection. Other fields do not cause this error. My TypeSense Schema:
Copy code
{
  "created_at": 1743004503,
  "default_sorting_field": "createdAt",
  "enable_nested_fields": false,
  "fields": [
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "administrative_area_level_1",
      "optional": true,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "city",
      "optional": true,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "copy",
      "optional": true,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "countryName",
      "optional": true,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "createdAt",
      "optional": false,
      "sort": true,
      "stem": false,
      "store": true,
      "type": "int64"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "provinceOrState",
      "optional": true,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    },
    {
      "facet": false,
      "index": true,
      "infix": false,
      "locale": "",
      "name": "uid",
      "optional": false,
      "sort": false,
      "stem": false,
      "store": true,
      "type": "string"
    }
  ],
  "name": "questions",
  "num_documents": 0,
  "symbols_to_index": [],
  "token_separators": []
}