2021-10-30

Posted 史上最强的弟子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2021-10-30相关的知识,希望对你有一定的参考价值。

POST /hot-topic-content-item/_update_by_query

  "query": 
    "bool": 
      "must": [
        
          "terms": 
            "_id": []
          
        
      ]
    
  ,
  "script": 
    "source": "ctx._source['deleted'] = \\"0\\""
  

GET hot-topic-content-item/_search

  "aggs":
    "dataId":
      "terms": 
        "field": "dataId",
        "size": 100000
      ,
      "aggs":
        "topicId":
          "terms":
          "field": "topicId",
          "size": 100000,
          "min_doc_count":2
        
      
      
    
  ,"size":0,
  "query":
    "bool":
      "must":[
        "term":
          "deleted":0
          
        
        ,
          "terms": 
            "topicId":  ["9"]
          
        ]
    

有having 的操作

GET hot-topic-content-item/_search

  "aggs":
    "dataId":
      "terms": 
        "field": "dataId",
        "size": 100000
      ,
      "aggs":
        "topicId":
          "terms":
          "field": "topicId",
          "size": 100000,
          "min_doc_count":2
        
      ,"having":
         "bucket_selector": 
            "buckets_path": 
              "orderCount": "_count"
            ,
            "script": 
              "source": "params.orderCount >=2 "
            
      
    

      
  ,"size":0,
  "query":
    "bool":
      "must":[
        "term":
          "deleted":0
          
        
        ,
          "terms": 
            "topicId":  ["9"]
          
        ]
    

以上是关于2021-10-30的主要内容,如果未能解决你的问题,请参考以下文章

2021-10-30

2021-10-30

2021-10-30

华电软工非全研究生学习和工作总结(2021.10.25-2021.10.30)

华电软工非全研究生学习和工作总结(2021.10.25-2021.10.30)

2021-10-30总结