标签:expand mic jdk jdk8 ima 实践 使用 bin www
官方资源链接
动手实践
当前最新版本 Elasticsearch 7.7.0
运行环境
下载 个人觉得迅雷相对较快
解压运行启动服务
?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/
菜单点击dev-tools工具进行基本使用调试
GET _count { "query": { "match_all": {} } }
PUT testuser/_doc/1 { "name":"kuKi", "address":"北京", "sex":"女", "about":"runing climbing joking", "age":24 }
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"] }
标签:expand mic jdk jdk8 ima 实践 使用 bin www
原文地址:https://www.cnblogs.com/wangrq/p/13018986.html