es查询基本语句

{
"sort": [
{
"timeUpdate": {
"order": "desc"
}
}
],
"query": {
"bool": {
"must": [
{
"match": {
"sort": "求助"
}
},
{
"terms": {
"parentType": [
"service",
"community"
]
}
},
{
"match": {
"cityId": 1
}
}
]
}
},
"size": "15"
}

posted @ 2019-04-16 22:53  dfh168  阅读(653)  评论(0)    收藏  举报