gpt4 book ai didi

elasticsearch - ElasticSearch: “Object field starting or ending with a [.] makes object resolution ambiguous: []”

转载 作者:行者123 更新时间:2023-12-03 00:53:16 24 4
gpt4 key购买 nike

我收到错误“对象字段以[。]开头或结尾使对象分辨率模糊:[]”。但是我的对象中没有单个点[。]。我使用elasticClient.update()通过:

{
"index": "applicants",
"type": "applicant",
"id": "A01gfGEBKfWmu0nhvuR7",
"body": {
"doc": {
"phsEmploymentHistory": {
"numSickDaysNotIll": "4",
"employers": [{
"employmentType": {},
"": {},
"name": null,
"supervisor": null,
"contactNumber": null,
"extension": null,
"email": null,
"coworker1": null,
"coworker2": null,
"duties": null,
"jobTitle": null,
"reasonLeaving": null,
"fullTime": null,
"partTime": null,
"temp": null,
"selfEmployed": null,
"volunteer": null,
"duration": {
"startDate": null,
"endDate": null
},
"address": {
"street": null,
"city": null,
"state": null,
"zip": null
}
}],
"agencies": [{
"": {},
"agencyName": null,
"backgroundInvestigator": null,
"contactNumber": null,
"extension": null,
"position": null,
"email": null,
"stepsCompleted": null,
"dateApplied": null,
"status": null,
"address": {
"street": null,
"city": null,
"state": null,
"zip": null
}
}],
"disciplined": {
"response": false,
"explanation": ""
},
"warnedDrugs": {
"response": false,
"explanation": ""
},
"valid": true
}
}
}
}

我已经看过几次了。我认为错误消息不足。 “对象分辨率不明确:[]”似乎暗示我有一个空数组,但没有。

最佳答案

json的值可以为空。但是,如果键为空,则ES在索引时会引发错误。
从json中删除"":{}并再次索引。

引用:
https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351

关于elasticsearch - ElasticSearch: “Object field starting or ending with a [.] makes object resolution ambiguous: []”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49202677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com