mac安装ElasticSearch

1、brew update     brew install elasticsearch

2、brew install elasticsearch-header

3、在命令中输入 elasticsearch

4、浏览器输入

127.0.0.1:9200

5、put内容

  

内容如下

{
    "title": 'Tony Stark',
    "content": 'Tony Stark is Ironman Hero. He is handsome and stronger!'
    "tag":["hero","marvrl"]
}

6、查询内容

 


 

 
 
posted @ 2018-04-29 15:39  nicknailo  阅读(145)  评论(0编辑  收藏  举报