Elasticsearch检索文档GET
Elasticsearch 大约 411 字检索文档
使用GET指令
curl -X GET "localhost:9200/megacorp/employee/1?pretty=true"
输出:
{
"_index" : "megacorp",
"_type" : "employee",
"_id" : "1",
"_version" : 1,
"_seq_no" : 0,
"_primary_term" : 1,
"found" : true,
"_source" : {
"first_name" : "John",
"last_name" : "Smith",
"age" : 25,
"about" : "I love to go rock climbing",
"interests" : [
"sports",
"music"
]
}
}
阅读 371 · 发布于 2019-04-25
————        END        ————
扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Android监听SIM卡状态阅读 1741
-
Golang命令之godoc阅读 311
-
微信小程序开发环境调试接口阅读 1048
-
pgAdmin4 Failed to open the system default web browser.Is one installed?.阅读 4825
-
Nginx编译安装时提示the HTTP gzip module requires the zlib library阅读 1726
-
Redis分布式锁阅读 705
-
MySQL合并字符串函数:CONCAT、CONCAT_WS、GROUP_CONCAT阅读 1397
-
算法:使用深度优先搜索对二叉树遍历、查找和删除阅读 30
-
面试题:Java中的==与equals区别阅读 498
-
软考:系统架构设计师-性能监测方法阅读 394