原来的查询:
GET /索引名/_search
{
"query": {
"match_all": {}
}
}
在查询时候把 track_total_hits 设置为 true。track_total_hits 设置为false禁用跟踪匹配查询的总点击次数,设置为true就会返回真实的命中条数
GET /索引名/_search
{
"query": {
"match_all": {}
},
"track_total_hits": true
}
原来的查询:
GET /索引名/_search
{
"query": {
"match_all": {}
}
}
在查询时候把 track_total_hits 设置为 true。track_total_hits 设置为false禁用跟踪匹配查询的总点击次数,设置为true就会返回真实的命中条数
GET /索引名/_search
{
"query": {
"match_all": {}
},
"track_total_hits": true
}