- 参考1:https://www.cnblogs.com/sunsky303/p/9438737.html
- 参考2:http://www.mybatis.cn/category/elasticsearch/
- 参考3:https://elasticstack.blog.csdn.net/
- 参考4:https://www.cnblogs.com/ilovepython/p/11650139.html
- 参考5:https://github.com/medcl/elasticsearch-analysis-ik/
- 参考6:https://blog.csdn.net/weixin_43430036/category_9280420.html
-
本地的 es 版本信息
es 版本信息 -
1 安装 ik 插件报错:
plugin-descriptor.properties: Not a directory
。 版本安装的还是有问题的,之前我是直接下载的 zip 包到本地。更快捷准确的方式:安装完成重启即可。
./bin/elasticsearch-plugin install
https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.0/elasticsearch-analysis-ik-6.3.0.zip
# 因为我的版本是 7.6.0 的,所以命令要改成:
./bin/elasticsearch-plugin install
https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.6.0/elasticsearch-analysis-ik-7.6.0.zip
ik 插件目录结构
- 查询数据的时候,No mapping found for [id] in order to sort on
这个比较疑惑的点是,数据中是有这个 id 字段的
数据示例但是查询的时候用做排序报错, 代码示例
了解一下:unmapped_type
默认情况下,如果对没有mapping的字段查询会失败. unmapped_type允许你无视没有mapping的字段并且不用它们排序 。unmapped_type的取值决定使用什么排序mapping。
网友评论