大家好,我是考100分的小小码 ,祝大家学习进步,加薪顺利呀。今天说一说Elasticsearch kibana官方基础本地实践,希望您对编程的造诣更进一步.
官方资源链接
- https://www.elastic.co/cn/start
- elasticsearch官方基础视频教程
- https://www.elastic.co/cn/webinars/getting-started-elasticsearch?elektra=startpage
- kibana官方基础视频教程
- https://www.elastic.co/cn/webinars/getting-started-kibana?elektra=startpage
动手实践
当前最新版本 Elasticsearch 7.7.0
运行环境
- a.JDK8+
- b.系统可用内存>2G
- c.win7
下载 个人觉得迅雷相对较快
- https://artifacts.elastic.co/downloads/kibana/kibana-7.7.0-windows-x86_64.zip
- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.0-windows-x86_64.zip
解压运行启动服务
elasticsearch/bin elasticsearch.bat #编辑 kibana.yml elasticsearch.hosts: ["http://localhost:9200"] #若elasticsearch开启用户密码则需要配置 elasticsearch.username: "elastic" elasticsearch.password: "changeme" 国际化中文界面开启 i18n.locale: "zh-CN" #双击启动 bin/kibana.bat #浏览器访问 http://localhost:5601/
代码100分
菜单点击dev-tools工具进行基本使用调试
代码100分GET _count { "query": { "match_all": {} } }
PUT testuser/_doc/1 { "name":"kuKi", "address":"北京", "sex":"女", "about":"runing climbing joking", "age":24 }
代码100分GET testuser/_doc/1
GET testuser/_search
GET testuser/_search?q=address:上海
GET testuser/_search
{"query":{ "match": { "address": "上海" } }}
GET testuser/_search { "query":{ "bool": { "must": [ {"match": { "address": "上海" }} ], "filter": [ { "range": { "age": { "gte": 15, "lte": 25 } } } ] } } }
GET testuser/_search { "query": { "match": { "address": "北京" } } }
GET testuser/_search { "query": { "match_phrase": { "about": "runing climbing" } } }
GET testuser/_search { "query": { "match_phrase": { "about": "runing climbing" } }, "highlight": { "fields": { "about": {} } } }
GET testuser/_search { "query":{ "bool": { "must": [ {"match": { "address": "上海" }} ], "filter": [ { "range": { "age": { "gte": 15, "lte": 25 } } }]}}}
GET testuser/_analyze { "text": ["goods morning every body"] }
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/8143.html