弹性搜索错误 - 期望双引号开始字段名称
Elastic search error - was expecting double-quote to start field name
我正在尝试为名为 region
的新索引创建映射。请找到我下面的映射文件。
PUT region
{
"mappings": {
"doc": {
"properties": {
"catalog_product_id": {
"type": "long",
},
"id": {
"type": "long"
},
"region_id":{
"type": "text"
},
"region_type":{
"type" : "text"
}
}
}
}
}
}
在尝试执行此映射脚本时出现以下错误
was expecting double-quote to start field name
我已经用我的 Kibana 仔细检查了你的映射,JSON 格式似乎存在解析错误。去掉"type": "long",
后的,
,从末尾去掉}
中的一个,如下:
PUT region
{
"mappings": {
"doc": {
"properties": {
"catalog_product_id": {
"type": "long"
},
"id": {
"type": "long"
},
"region_id":{
"type": "text"
},
"region_type":{
"type" : "text"
}
}
}
}
}
我正在尝试为名为 region
的新索引创建映射。请找到我下面的映射文件。
PUT region
{
"mappings": {
"doc": {
"properties": {
"catalog_product_id": {
"type": "long",
},
"id": {
"type": "long"
},
"region_id":{
"type": "text"
},
"region_type":{
"type" : "text"
}
}
}
}
}
}
在尝试执行此映射脚本时出现以下错误
was expecting double-quote to start field name
我已经用我的 Kibana 仔细检查了你的映射,JSON 格式似乎存在解析错误。去掉"type": "long",
后的,
,从末尾去掉}
中的一个,如下:
PUT region
{
"mappings": {
"doc": {
"properties": {
"catalog_product_id": {
"type": "long"
},
"id": {
"type": "long"
},
"region_id":{
"type": "text"
},
"region_type":{
"type" : "text"
}
}
}
}
}