美文网首页
Elasticsearch 入门参考(1)

Elasticsearch 入门参考(1)

作者: answer6 | 来源:发表于2021-02-09 10:12 被阅读0次

    • 安装报错:https://github.com/medcl/elasticsearch-rtf

    • 本地的 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 插件目录结构
      1. 查询数据的时候,No mapping found for [id] in order to sort on

    这个比较疑惑的点是,数据中是有这个 id 字段的

    数据示例
    但是查询的时候用做排序报错, 代码示例
    了解一下:unmapped_type
    默认情况下,如果对没有mapping的字段查询会失败. unmapped_type允许你无视没有mapping的字段并且不用它们排序 。unmapped_type的取值决定使用什么排序mapping。

    相关文章

      网友评论

          本文标题:Elasticsearch 入门参考(1)

          本文链接:https://www.haomeiwen.com/subject/bzbqxltx.html