GET indexName/_search?pretty
{
    "size": 0,  
    "query":{
        "bool":{
            "must":[
                {
                    "term":{
                        "fieldName":"***"
                    }
                }
            ],
            "must_not": [
              {
                "term": {
                  "fieldName": "***"
                }
              }
            ]
        }
    },
    "aggs": {
        "group_by_tags": {
            "terms": { "field": "fieldName.keyword" ,"size": 200}
        }
    }
}

fieldName:替换成相应的字段

相关文章:

  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2021-07-29
  • 2022-03-04
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案