【发布时间】:2015-05-18 13:53:45
【问题描述】:
我想在云搜索中进行地理搜索,我这样做索引是这样的
当我上传文件时
[{"type": "add", "id": "kdhrlfh1304532987654321987654321", "fields":{"name": "user1", "latlon":[12.628611, 120.694152] , "phoneverifiedon": "2015-05-04T15:39:03Z", "fbnumfriends": 172}},
{"type": "add", "id": "kdhrlfh1304532987654321987654322", "fields": {"name": "user2", "latlon":[12.628645,20.694178] , "phoneverifiedon": "2015-05-04T15:39:03Z", "fbnumfriends": 172}}]
我遇到了以下错误
Status: error
Adds: 0
Deletes: 0
Errors:
{ ["Field "latlon" must have array type to have multiple values (near operation with index 1; document_id kdhrlfh1304532987654321987654321)","Validation error for field 'latlon': Invalid latlon value 12.628611"] }
我为“latlon”字段尝试了多种格式 请建议 cloudsearch 中 lat long 的正确格式是什么
【问题讨论】:
标签: amazon amazon-dynamodb amazon-cloudsearch