{ title: 'abcccc',
price: 3300,
price_per: 'task',
location: { lat: -33.8756, lon: 151.204 },
description: 'asdfasdf'
}
以上是我想索引的JSON。但是,当我索引它,错误是:索引弹性搜索结果中的地理空间错误?
{"error":"MapperParsingException[Failed to parse [location]]; nested: ElasticSearchIllegalArgumentException[unknown property [lat]]; ","status":400}
如果我删除“位置”字段,一切正常。
如何建立地理位置?我阅读教程,我仍然困惑它如何工作。它应该像这样工作,对吧......?
请添加导致该错误的步骤的完整描述。 – DrTech 2013-02-25 19:03:49
您是否试过[其他格式](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html),例如'位置:'-33.8756,151.204''? – mindas 2013-02-26 22:02:33