#Elasticsearch# 文章列表 Elasticsearch 介绍 Elasticsearch 7:快速上手 Elasticsearch 7:关于 Index、Type、Document Elasticsearch 7:安装与启动 Elasticsearch 7:Kibana 的使用 Elasticsearch 7:下载历史版本 Elasticsearch 7:文档唯一性 Elasticsearch 7:默认端口与端口设置 Elasticsearch 7:创建和删除索引 Elasticsearch 7:自定义 mapping 和 settings Elasticsearch 7:设置索引副本数量和分片数量 Elasticsearch 7:查看所有索引 Elasticsearch 7:数据类型 Elasticsearch 7:字符串类型 keyword 、text Elasticsearch 7:数组 Elasticsearch 7:添加和更新文档 Elasticsearch 7:通过 _bulk 批量添加文档 Elasticsearch 7:使用 from 、size 进行分页查询 Elasticsearch 7:查询中使用 sort 进行排序 Elasticsearch 7:查询结果只展示部分字段 Elasticsearch 7:查询结果中展示 _version 字段 Elasticsearch 7:使用 ignore_above 限制字符串长度 Elasticsearch 7:动态映射 Elasticsearch 7:doc_values 属性 Elasticsearch 7:刷新周期 refresh_interval Elasticsearch 7:使用 _refresh 刷新索引 Elasticsearch 7:分片(shard)限制 Elasticsearch 7:使用 _cat thread_pool 查询线程池运行情况 Elasticsearch 7:事务日志 translog Elasticsearch 7:文档 _id 的长度限制 Elasticsearch 7:分片 shard Elasticsearch 7:滚动查询 Elasticsearch 7:聚合查询 Elasticsearch 7:索引模板 Elasticsearch 7:获取文档所属的 shard Elasticsearch 7:获取版本号 Elasticsearch 7:获取指定 shard 中的文档 Elasticsearch 7:获取 shard 统计信息 Elasticsearch 7:搜索实战 Elasticsearch 7:Python 客户端 Elasticsearch 7:Java TransportClient API 客户端 Elasticsearch 7:Java REST Client API 客户端 Elasticsearch:将 SQL 转换为 DSL Elasticsearch 6 快速上手 Elasticsearch 5 快速上手 Elasticsearch 5:禁止自动创建索引 Elasticsearch 5:禁止动态增加字段 Elasticsearch 产品版本支持周期 基于 Elasticsearch 的站内搜索引擎实战

Elasticsearch 7:Kibana 的使用


#Elasticsearch#


Kibana 的版本应该和 Elasticsearch 一致。例如 elasticsearch 版本是 7.2.0,kibana 也应该是7.2.0。

安装

下载网址:https://www.elastic.co/cn/downloads/past-releases

解压后,直接运行 bin/kibana即可。

端口

默认监听本地的 5601 端口,用户可以通过 http://127.0.0.1:5601 访问 kibana 网页。

如果要自定义,比如修改为 5602,可以在config/kibana.yml中增加一行:

server.port: 5602

kibana 默认监听 elasticsearch 在本地的 9200 端口,如果要修改可以在config/kibana.yml中增加一行:

elasticsearch.hosts: ["http://localhost:9202"]

Dev Tools 的使用

kibana 网页中左侧有一竖着排列的工具栏,其中一个工具是 Dev Tools ,我们用它来执行 Elasticsearch 的 DSL ,比如创建索引、添加文档、查询等。

本地网址: http://127.0.0.1:5601/app/kibana#/dev_tools/console?_g=()


( 本文完 )