【发布时间】:2016-05-08 12:36:15
【问题描述】:
我将elasticsearch-dsl-py 0.0.11 用于ES 1.7,我想添加GeoPoint 类型,如fields.py 中所列:
__all__ = [
'construct_field', 'Field', 'Object', 'Nested', 'Date', 'String', 'Float', 'Double',
'Byte', 'Short', 'Integer', 'Long', 'Boolean', 'Ip', 'Attachment',
'GeoPoint', 'GeoShape', 'InnerObjectWrapper'
]
但不存在名为 GeoPoint 的类,我无法为这样的位置字段创建映射:
location = GeoPoint()
我该怎么办?
【问题讨论】:
-
GeoPoint类已于 2017 年 1 月 1 日明确定义:github.com/elastic/elasticsearch-dsl-py/commit/…
标签: python elasticsearch elasticsearch-dsl