这里写自定义目录标题
curl -X get localhost:9200/_index/_type/_id
通过id获取数据
curl -X post 'http://localhost:9200/_index/_type/_search' -H 'Content-Type: application/json' -d
'{
"query":{
"term":{
"age":20,
}
}
}'
通过json查询数据
本文介绍如何使用curl命令通过ID获取Elasticsearch中的数据以及如何利用JSON查询特定年龄的数据记录。
curl -X get localhost:9200/_index/_type/_id
通过id获取数据
curl -X post 'http://localhost:9200/_index/_type/_search' -H 'Content-Type: application/json' -d
'{
"query":{
"term":{
"age":20,
}
}
}'
通过json查询数据

被折叠的 条评论
为什么被折叠?