今天看了一下ElasticSearch的相關文檔,我作了以下總結:測試
發現愈來愈喜歡畫圖概括總結知識了,看圖說話spa
集羣特性說明rest
健康情況的說明code
如何配置分片?blog
接下來一張圖總結下操做相關的總結ip
接下來,隨便來個API測試下,先建立數據吧,這裏隨便封裝下API文檔
能夠看到已經建立成功了it
接下來咱們來試試查詢table
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "mydatabase",
"_type": "mytable",
"_id": "123",
"_score": 1,
"_source": {
"first_name": "John",
"last_name": "Smith",
"age": 25,
"about": "I love to go rock climbing",
"interests": [
"sports",
"music"
]
}
},
{
"_index": "mydatabase",
"_type": "mytable",
"_id": "456",
"_score": 1,
"_source": {
"mylove": "i love you"
}
}
]
}
}
這裏能夠看到咱們添加的數據了ast
安裝圖形中的命令在走一下
能夠獲得結果
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 0.2876821,
"hits": [
{
"_index": "mydatabase",
"_type": "mytable",
"_id": "456",
"_score": 0.2876821,
"_source": {
"mylove": "i love you"
}
}
]
}
}
其餘的操做就不測試了~