Elastic的IN查找

{
    "aggs":{

    },
    "from":0,
    "query":{
        "bool":{
            "must":[
                {
                    "terms":{
                        "ID":[
                            "1",
                            "2"
                        ]
                    }
                }
            ]
        }
    },
    "size":10,
    "sort":[

    ],
    "track_total_hits":true
}

terms 全等

posted @ 2021-06-23 17:01  许伟强  阅读(397)  评论(0编辑  收藏  举报