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"
}
}

posted on 2020-08-14 10:40  怦然丶心动  阅读(1124)  评论(0编辑  收藏  举报