my request :

   "aggs": {
      "lastMsg": {
         "terms": { "field": "host", "size" : 0 },
         "aggs" : {
             "max_date" : { "max" : { "field" : "_msr_datetime" } }
         }
      }
   }  

response :

aggregations: { 
  lastMsg: { buckets: [ 
   
   - { 
      - key: opacpas6
      - doc_count: 10
      - max_date: { 
         - value: 1405007491779
      }
   }
   - { 
      - key: opacpas8
      - doc_count: 20
      - max_date: { 
         - value: 1405007490895
      }
   }
   - { 
      - key: opacpas7
      - doc_count: 30
      - max_date: { 
         - value: 1405007491728
      }
   }

i would like to aggregate "max_date" for doc_count > 10
possible ?

thx
patrick



-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9aacb3c8-0066-4e41-a7c9-1d953cbe38fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to