ElasticSearch:QueryParsingException: [my-index] failed to find geo_point field [position] 解决
来源:互联网 发布:重庆旅游业数据 编辑:程序博客网 时间:2024/06/08 13:11
在Spring 的实体里定义了一个属性
private GeoPoint position;
索引建立没有问题,但是查询是报错QueryParsingException: [my-index] failed to find geo_point field [position]
然后Get /my-index/_mapping 发现
"position": { "properties": { "lat": { "type": "double" }, "lon": { "type": "double"
} } },
position 的type并不是 geo_point.
通过查找资料http://es.xiaoleilu.com/310_Geopoints/20_Geopoints.html (这个网址里是Looly翻译的Elasticsearch的中文指南)
创建索引首先声明geo_point类型,然后就可以了
以上是个人见解,如有问题请大家指出纠正。
1 0
- ElasticSearch:QueryParsingException: [my-index] failed to find geo_point field [position] 解决
- elasticsearch failed to parse date field
- find my position
- 解决Some index files failed to download 错误
- elasticsearch geo_point 地理位置过滤 按经度排序
- logstash-out-elasticsearch 设置geo_point格式
- 如何解决Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE ""
- 解决failed to find Build Tools revision xxx问题
- [解决]Error:failed to find Build Tools revision
- failed to find Build Tools revision错误的解决
- vkEnumerateInstanceExtensionProperties failed to find
- Gradle sync failed: failed to find Build Tools revision 23.0.3 解决
- Github:failed to add file / to index
- HBase Coprocessor to Index Columns into ElasticSearch
- Failed to download samples index, please check your connection and try again 解决
- Failed to download samples index, please check your connection and try again 解决
- 解决“Some index files failed to download, they have been ignored, or old ones used instead.”
- 解决:Some index files failed to download. They have been ignored, or old ones used instead.
- 修改状态栏颜色
- LevelDB详解
- 通过可视化来了解你的Spark应用程序
- react-native组件笔记
- #316 – 改变按钮的ClickMode(Changing the ClickMode of a Button)
- ElasticSearch:QueryParsingException: [my-index] failed to find geo_point field [position] 解决
- 设计模式之单例模式(singleton)C++
- 360面试题——搜索二叉树转换成有序的双向链表
- 推荐系统开源软件列表汇总和点评
- Java Executor并发框架(八)Executor框架线程池ThreadPoolExecutor、ScheduledThreadPoolExecutor
- 程序跳转到 mainret = main(argc, argv, envp); 抛出异常Unhandled exception
- 解决android.content.res.ResourcesNotFoundException
- shell基础(一)
- RTX lwiphttp客户端程序