ES以及ESHead ,window启动


 

1.进入ES 目录---启动ES

elasticsearch.bat

 

2.cmd 进入head目录---启动head

npm start

 页面地址:http://127.0.0.1:9100/

3.ES创建索引

PUT http://127.0.0.1:9200/commodity

{
"settings": {
"number_of_shards": 3,
"number_of_replicas": 2
}
}

 4.ES重建分词

(1):重建索引-加mapping

PUT  http://localhost:9200/fenci1/

{
"settings": {
"analysis": {
"analyzer": {
"es_std": {
"type": "standard",
"stopwords": "_english_"
}
}
}
}
}

(2):reindex

POST http://localhost:9200/_reindex/

{
"source": {
"index": "book_index"
},
"dest": {
"index": "fenci1"
}
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM