Advertisement

ES multi-field combined query

阅读量:
复制代码
 {

    
    "query": {
    
     "bool": {
    
       "must": [
    
     {
    
       "term": {
    
         "rtype.keyword": "020200"
    
       }
    
     }
    
       ]
    
     }
    
   },
    
   "size": 0,
    
   "aggs": {
    
     "app": {
    
       "terms": {
    
  
    
     "script": "doc['contact_account_type.keyword'].value +','+doc['friend_account.keyword'].value",
    
     "size": 100000
    
       }
    
     }
    
   }
    
 }
    
    
    
    
复制代码
 {

    
    "query": {
    
     "bool": {
    
       "must": [
    
     {
    
       "term": {

全部评论 (0)

还没有任何评论哟~