您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
elasticSearch查询DSL-匹配所有查询
发布时间:2021-09-06 18:50:16编辑:雪饮阅读()
这是最基本的查询; 它返回所有内容。ElasticSearch查询DSL的匹配所有查询请求如:
请求正文:
{
"query":{
"match_all":{}
}
}
响应正文:
{
"took": 390,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 3,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "schools",
"_type": "school",
"_id": "1",
"_score": 1.0,
"_source": {
"name": "Central School",
"description": "CBSE Affiliation",
"street": "Nagan",
"city": "paprola",
"state": "HP",
"zip": "176115",
"location": [
31.8955385,
76.8380405
],
"fees": 2000,
"tags": [
"Senior Secondary",
"beautiful campus"
],
"rating": "3.5"
}
},
{
"_index": "schools",
"_type": "school",
"_id": "2",
"_score": 1.0,
"_source": {
"name": "Saint Paul School",
"description": "ICSE Afiliation",
"street": "Dawarka",
"city": "Delhi",
"state": "Delhi",
"zip": "110075",
"location": [
28.5733056,
77.0122136
],
"fees": 5000,
"tags": [
"Good Faculty",
"Great Sports"
],
"rating": "4.5"
}
},
{
"_index": "schools",
"_type": "school",
"_id": "3",
"_score": 1.0,
"_source": {
"name": "Crescent School",
"description": "State Board Affiliation",
"street": "Tonk Road",
"city": "Jaipur",
"state": "RJ",
"zip": "176114",
"location": [
26.8535922,
75.7923988
],
"fees": 2500,
"tags": [
"Well equipped labs"
],
"rating": "4.5"
}
}
]
}
}
关键字词:elasticSearch,查询DSL,匹配所有查询
相关文章
- elasticSearch节点hot_threads
- elasticSearch集群api-节点统计
- elasticSearch群集更新设置api参数flat_settings的使
- elasticSearch群集更新设置(transient)
- elasticSearch集群获取设置api与群集更新设置(persist
- elasticSearch分片(主分片、副本分片)与节点的关系
- elasticSearch集群配置-cluster.initial_master_nodes
- elasticSearch配置集群、配置主从(master与data分离)集
- elasticSearch配置集群名称
- elasticSearch正在等待的群集任务