我正在使用elasticsearch-dsl-py 0.0.11
forES 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()
我应该怎么办?