"from and size" for ES-5.0.0 aggregation


(Hilal) #1

Hi,

I want to dofrom and size for aggregation. I looked at this link (https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-aggregations-bucket-terms-aggregation.html)

There is only the size part here. Notfrom and size.

Code below brings up 10 records starting from 0:

  GET abc/def/_search
    {  "query": {
        "match": {
          "id":  "11340073"
          }    },
      "aggs":{
        "group_by_state":{
          "terms":{
            "field": "code",
        "size": "10"
            }   }  }  }

It works but I want to do "from": "5","size": "10"

How can I do?

Thanks advance.


(David Pilato) #2

Look at this issue and the ending answer by Mark:


(Hilal) #3

Thank yo for your response.
It is not possible to do this with as much as I understand.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.