Elasticsearch 检索文档 GET
Elasticsearch 大约 412 字检索文档
使用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"
]
}
}
阅读 1802 · 发布于 2019-04-25
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Java Lombok @RequiredArgsConstructor 注解阅读 2372
-
Java WebSocket The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method阅读 5049
-
Kubernetes 获取容器 ID阅读 1330
-
Windows 子系统初始化报错:参考的对象类型不支持尝试的操作阅读 5084
-
Kubernetes 数据存储 Secret阅读 1208
-
JMeter 使用 Response Assertion 判断接口请求是否成功阅读 2163
-
MySQL 索引条件下推阅读 1512
-
PostgreSQL 转义特殊字符阅读 70
-
Kubernetes 可视化工具 Lens 及 OpenLens阅读 1462
-
Elasticsearch 短语搜索 query->match_phrase阅读 2833