Emma Lejeck
08/05/2023, 1:31 AM{
"name": "anime:production@42069",
"enable_nested_fields": true,
"fields": [
{
"name": "titles",
"type": "object"
},
{
"name": "titles\\..*",
"type": "string"
},
{
"name": "start_date",
"type": "object"
},
{
"name": "start_date\\..*",
"type": "int32",
"facet": true,
"optional": true
}
]
}
I attempt to insert the following:
{
"titles": {
"zh-cn": "我的英雄学院"
},
"id": "420",
"start_date": {
"year": 2020,
"month": 2,
"day": 3
}
}
And get the following error:
{
"message": "Field `titles.zh-cn` must be an int32."
}
Even though I clearly defined titles\..*
to be string
🤔Emma Lejeck
08/05/2023, 1:35 AMstart_date
and start_date\..*
resolves it, even though they definitely do not match the fieldKishore Nallan
08/05/2023, 1:41 AMEmma Lejeck
08/05/2023, 1:41 AMKishore Nallan
08/05/2023, 1:44 AMlocale
property of the field to zh
Emma Lejeck
08/05/2023, 1:45 AM.*\.zh.*
which define locales, but I reduced this testcase and happened to choose the mandarin field when doing so 😅 Still happens even with english, I’ll change that in the github issueKishore Nallan
08/05/2023, 1:48 AMEmma Lejeck
08/05/2023, 1:49 AMEmma Lejeck
08/05/2023, 1:50 AMstart_date
field alone is fine, it’s the start_date\..*
field which breaks itKishore Nallan
08/05/2023, 1:53 AMEmma Lejeck
08/05/2023, 3:12 AMday
month
and year
fields explicitly, thankfully that works for my use case 😅