Samuel Vrablik
03/01/2023, 10:28 AM**
has an incorrect type.` error when updating schema on already existing collection? I have tried to export data and check for any corrupted fields but wasn't able to find anything wrongKishore Nallan
03/01/2023, 10:34 AM**
sounds weird. Are you able to share the data directory with me via DM so I can take a look? You can just zip it and share if it's something you are comfortable sharing.Samuel Vrablik
03/01/2023, 10:35 AM**
I just recorded it for purpose of sending this message original error is `Error: e: Request failed with HTTP code 400 | Server said: Field properties.WORK.assignee.value
has an incorrect type.`Samuel Vrablik
03/01/2023, 10:36 AMproperties.WORK.assignee.value
can be null | [] | string[]
Samuel Vrablik
03/01/2023, 10:36 AM{
"fields": [
{
"facet": true,
"index": true,
"infix": false,
"locale": "",
"name": "properties.WORK.assignee.value",
"optional": true,
"sort": false,
"type": "auto"
}
]
}
Samuel Vrablik
03/01/2023, 10:36 AMKishore Nallan
03/01/2023, 10:40 AMSamuel Vrablik
03/01/2023, 10:41 AMSamuel Vrablik
03/01/2023, 10:41 AMTypesense v0.24.0
version might be related ?Kishore Nallan
03/01/2023, 10:42 AMKishore Nallan
03/01/2023, 10:42 AMKishore Nallan
03/01/2023, 10:52 AMKishore Nallan
03/01/2023, 11:19 AMauto
--> it must be a concrete type.Kishore Nallan
03/01/2023, 11:19 AMKishore Nallan
03/01/2023, 11:22 AMstring[]
--> it should work!Samuel Vrablik
03/01/2023, 12:08 PMSamuel Vrablik
03/17/2023, 8:20 AMSamuel Vrablik
03/17/2023, 8:21 AMSamuel Vrablik
03/17/2023, 8:21 AMKishore Nallan
03/17/2023, 8:22 AMSamuel Vrablik
03/17/2023, 8:24 AMSamuel Vrablik
03/17/2023, 8:24 AMSamuel Vrablik
03/17/2023, 9:04 AMKishore Nallan
03/17/2023, 9:30 AMKishore Nallan
03/17/2023, 11:25 AMSamuel Vrablik
03/17/2023, 11:26 AMSamuel Vrablik
03/17/2023, 11:27 AM{
"fields": [
{
"facet": true,
"index": true,
"infix": false,
"locale": "",
"name": "properties.WORK.assignee.value",
"optional": true,
"sort": false,
"type": "string[]"
}
]
}
Kishore Nallan
03/17/2023, 11:34 AMKishore Nallan
03/17/2023, 11:40 AMproperties.WORK.assignee.value
seems to be an array of objects?Samuel Vrablik
03/17/2023, 11:40 AMSamuel Vrablik
03/17/2023, 11:41 AM[{
"lastUpdateBy": "KOBQAiHm8eTYmdYDSJtHfnxOBIv1",
"updatedAt": {
"_nanoseconds": 583000000,
"_seconds": 1676508480
},
"value": [
"KOBQAiHm8eTYmdYDSJtHfnxOBIv1"
]
}
,{
"lastUpdateBy": "AJSUE9y9RtZw5BY7AIqafyPHhgT2",
"updatedAt": {
"_nanoseconds": 415000000,
"_seconds": 1675938146
},
"value": [
"AJSUE9y9RtZw5BY7AIqafyPHhgT2"
]
}]
Kishore Nallan
03/17/2023, 11:41 AM"properties":{
"WORK":{
"assignee":{
"lastUpdateBy":"CWzdjyOShMg4bHeGO4NkJzigLnE2",
"updatedAt":{
"_nanoseconds":660000000,
"_seconds":1678966234
},
"value":[
{
"displayName":"Social media manager",
"id":"Social media manager"
}
]
},
Samuel Vrablik
03/17/2023, 11:41 AMSamuel Vrablik
03/17/2023, 11:42 AMjq '.properties.WORK.assignee | select(.properties...'
but didn't found that objectKishore Nallan
03/17/2023, 11:42 AMid
of the bad document along with the error messageKishore Nallan
03/17/2023, 11:43 AMNR4FCzUQgqjQGtP6Tzzy
Kishore Nallan
03/17/2023, 11:49 AMobject[]
field. This is a limitation that we have to address.Samuel Vrablik
03/17/2023, 11:49 AMSamuel Vrablik
03/17/2023, 11:50 AMKishore Nallan
03/17/2023, 11:50 AMSamuel Vrablik
03/17/2023, 11:52 AMstring[]
and I will do the document.insert() which will contain invalid data. Will it get rejected ?Kishore Nallan
03/17/2023, 11:53 AMKishore Nallan
03/17/2023, 11:54 AM