David Engel
05/08/2023, 5:28 PMfield1.nestedField1
in the Firestore Collection Fields
input when configuring the extension.
• Data does sync with typesense if I only put field1
in the same input, but then my typesense schema appears to auto-update to include every nested field within field1
Should I be able to target nested fields in Firestore Collection Fields
with dot notation? If so, should each value that I provide to Firestore Collection Fields
correlate with a field item in my typesense schema? And is the schema supposed to auto-update after I connect typesense to my firebase collection?
I'm not finding much information online about how to properly configure the firebase extension to work with nested fields, but I know that's a fairly new feature. Thanks in advance.Jason Bosco
05/08/2023, 5:57 PMJason Bosco
05/08/2023, 5:58 PMDavid Engel
05/08/2023, 6:56 PMFirestore Collection Fields
I should specify field1
, and then in my schema I need to provide info for field1
, as well as all relevant nested fields I want to index, like:
"fields":[
{
"name": "field1",
"type": "object"
},
{
"name": "field1.nested1",
"type": "object[]"
},
{
"name": "field1.nested1.nested2",
"type": "string[]"
},
{
"name": "field1.nested1.nested3",
"type": "object[]"
},
{
"name": "field1.nested1.nested3.nested4",
"type": "string[]"
},
{
"name": "field1.nested1.nested3.nested5",
"type": "string[]"
}
]
David Engel
05/08/2023, 6:58 PMcollection settings
increases in length by abouce 4x, to include every other nested field in field1
... You're saying this is also expected?Jason Bosco
05/08/2023, 7:02 PMJason Bosco
05/08/2023, 7:02 PMfield1.nested1.nested3.nested5
, you can skip the other items in your example, from the schemaJason Bosco
05/08/2023, 7:03 PM{
"name": "field1",
"type": "object"
},
Jason Bosco
05/08/2023, 7:03 PMDavid Engel
05/08/2023, 7:04 PMDavid Engel
05/08/2023, 8:01 PMfield1.nested1.nested2
which looks like
field1: {
nested1: [ ... { nested2: <value> } ]
}
and I see
Error: Request failed with HTTP code 404 | Server said: Field field1.nested1.nested2 not found.
in the firebase logsDavid Engel
05/08/2023, 8:11 PMJason Bosco
05/08/2023, 8:23 PMDavid Engel
05/08/2023, 8:49 PM