https://www.elastic.co/cn/
分布式搜索
数据分析
分组和聚合
https://www.elastic.co/cn/downloads/
node.name: node-1
// 这个很重要
http.host: 0.0.0.0
http.port: 9200
-Xms256M
-Xmx256M
chown -R esuser:esuser /usr/local/software/elasticsearch-7.2.0
su esuser
sh elasticsearch -d
curl -X GET "http://localhost:9200"
es重启后会加载ik
curl -X PUT "localhost:9200/post"
POST post/_close
PUT post/_settings
{
"number_of_replicas": 0,
"index":{
"analysis.analyzer.default.type":"ik_max_word",
"analysis.search_analyzer.default.type":"ik_smart"
}
}
POST post/_open
curl --location --request PUT '787k.fun:9200/post/_mapping' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": {
"id": {
"type": "integer"
},
"title": {
"type": "text"
},
"content": {
"type": "text"
},
"blogImg": {
"type": "keyword"
},
"html_content": {
"type": "keyword"
},
"authorId": {
"type": "integer"
},
"authorName": {
"type": "keyword"
},
"tag": {
"type": "integer"
},
"type": {
"type": "integer"
},
"status": {
"type": "integer"
},
"commentCount": {
"type": "integer"
},
"score": {
"type": "double"
},
"created": {
"type": "date"
},
"updated": {
"type": "date"
}
}
}'
org.elasticsearch.client
elasticsearch-rest-high-level-client
7.2.0
org.elasticsearch
elasticsearch
7.2.0
elasticsearch.host=localhost
elasticsearch.port=9200
网站题目:聊聊Elastic-Search部署和应用
网址分享:http://www.shufengxianlan.com/qtweb/news43/322643.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联