# What does the "aggs" field in my index settings represent

**URL:** <https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996>\
**Category:** Elasticsearch\
**Created:** [December 1, 2014, 7:08am UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996 "2014-12-01T07:08:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Karaka](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Anil\_Karaka](https://discuss.elastic.co/u/Anil_Karaka)\
**Post date:** [December 1, 2014, 7:08am UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996/1 "2014-12-01T07:08:34Z")

</div>

{

- test\_index:  
{
  - settings:  
{
    - index:  
{
      - creation\_date: "1416836998944",
      - warmer:  
{
        - enabled: "false"  
},

      - uuid: "R2eL4uvvQbGtLKAaDPrmaQ",
      - number\_of\_replicas: "1",
      - aggs:  
{
        - group\_by\_age:  
{
          - aggs:  
{
            - group\_by\_gender:  
{
              - aggs:  
{
                - average\_balance:  
{
                  - avg:  
{
                    - field: "balance"  
}  
}  
},

              - terms:  
{
                - field: "gender",
                - order:  
{
                  - average\_balance: "desc"  
}  
}  
}  
},

          - range:  
{
            - field: "age",
            - 
## ranges: [

## { - to: "29", - from: "20" },

## { - to: "39", - from: "30" },
{  
- to: "49",  
- from: "40"  
}  
]  
}  
}  
},

      - number\_of\_shards: "5",
      - refresh\_interval: "5s",
      - version:  
{
        - created: "1040099"  
},

      - size: "0"  
}  
}  
}

}

I'm a little confused by "aggs" in my index settings, what does it mean? Is  
it related to index warmers, or index aliases..?

Thank you.

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 1, 2014, 9:44am UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996/2 "2014-12-01T09:44:15Z")

</div>

"aggs" makes no sense in the context of index settings, it looks to me like  
someone mistakenly submitted a search request with aggregations to the  
update settings endpoint instead of the search endpoint.

On Mon, Dec 1, 2014 at 8:08 AM, Anil Karaka [anilkaraka@gmail.com](mailto:anilkaraka@gmail.com) wrote:

> {
> 
> - test\_index:  
> {
> - settings:  
> {
> - index:  
> {
> - creation\_date: "1416836998944",
> - warmer:  
> {
> - enabled: "false"  
> },
> 
> - uuid: "R2eL4uvvQbGtLKAaDPrmaQ",
> - number\_of\_replicas: "1",
> - aggs:  
> {
> - group\_by\_age:  
> {
> - aggs:  
> {
> - group\_by\_gender:  
> {
> - aggs:  
> {
> - average\_balance:  
> {
> - avg:  
> {
> - field: "balance"  
> }  
> }  
> },
> 
> - terms:  
> {
> - field: "gender",
> - order:  
> {
> - average\_balance: "desc"  
> }  
> }  
> }  
> },
> 
> - range:  
> {
> - field: "age",
> - 
> ## ranges: [
> 
> ## { - to: "29", - from: "20" },
> 
> ## { - to: "39", - from: "30" },
> {  
> - to: "49",  
> - from: "40"  
> }  
> ]  
> }  
> }  
> },
> 
> - number\_of\_shards: "5",
> - refresh\_interval: "5s",
> - version:  
> {
> - created: "1040099"  
> },
> 
> - size: "0"  
> }  
> }  
> }
> 
> }
> 
> I'm a little confused by "aggs" in my index settings, what does it mean?  
> Is it related to index warmers, or index aliases..?
> 
> Thank you.
> 
> --  
> 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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6Mcejo%3DLSU4er4H1rLq8b3uhnr8NqbTiMBBhCFcGn1RA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6Mcejo%3DLSU4er4H1rLq8b3uhnr8NqbTiMBBhCFcGn1RA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Anil\_Karaka](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Anil\_Karaka](https://discuss.elastic.co/u/Anil_Karaka)\
**Post date:** [December 1, 2014, 11:13am UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996/3 "2014-12-01T11:13:37Z")

</div>

Oh, things like that happen?

Thanks.

On Monday, December 1, 2014 3:14:27 PM UTC+5:30, Adrien Grand wrote:

> "aggs" makes no sense in the context of index settings, it looks to me  
> like someone mistakenly submitted a search request with aggregations to the  
> update settings endpoint instead of the search endpoint.
> 
> On Mon, Dec 1, 2014 at 8:08 AM, Anil Karaka \<[anilk...@gmail.com](mailto:anilk...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > {
> > 
> > - test\_index:  
> > {
> > - settings:  
> > {
> > - index:  
> > {
> > - creation\_date: "1416836998944",
> > - warmer:  
> > {
> > - enabled: "false"  
> > },
> > 
> > - uuid: "R2eL4uvvQbGtLKAaDPrmaQ",
> > - number\_of\_replicas: "1",
> > - aggs:  
> > {
> > - group\_by\_age:  
> > {
> > - aggs:  
> > {
> > - group\_by\_gender:  
> > {
> > - aggs:  
> > {
> > - average\_balance:  
> > {
> > - avg:  
> > {
> > - field: "balance"  
> > }  
> > }  
> > },
> > 
> > - terms:  
> > {
> > - field: "gender",
> > - order:  
> > {
> > - average\_balance: "desc"  
> > }  
> > }  
> > }  
> > },
> > 
> > - range:  
> > {
> > - field: "age",
> > - 
> > ## ranges: [
> > 
> > ## { - to: "29", - from: "20" },
> > 
> > ## { - to: "39", - from: "30" },
> > {  
> > - to: "49",  
> > - from: "40"  
> > }  
> > ]  
> > }  
> > }  
> > },
> > 
> > - number\_of\_shards: "5",
> > - refresh\_interval: "5s",
> > - version:  
> > {
> > - created: "1040099"  
> > },
> > 
> > - size: "0"  
> > }  
> > }  
> > }
> > 
> > }
> > 
> > I'm a little confused by "aggs" in my index settings, what does it mean?  
> > Is it related to index warmers, or index aliases..?
> > 
> > Thank you.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien Grand

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 3, 2014, 1:54pm UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996/4 "2014-12-03T13:54:51Z")

</div>

Unfortunately, if you mistakenly go to the wrong endpoint, i can happen  
indeed ☹

On Mon, Dec 1, 2014 at 12:13 PM, Anil Karaka [anilkaraka@gmail.com](mailto:anilkaraka@gmail.com) wrote:

> Oh, things like that happen?
> 
> Thanks.
> 
> On Monday, December 1, 2014 3:14:27 PM UTC+5:30, Adrien Grand wrote:
> 
> > "aggs" makes no sense in the context of index settings, it looks to me  
> > like someone mistakenly submitted a search request with aggregations to the  
> > update settings endpoint instead of the search endpoint.
> > 
> > On Mon, Dec 1, 2014 at 8:08 AM, Anil Karaka [anilk...@gmail.com](mailto:anilk...@gmail.com) wrote:
> > 
> > > {
> > > 
> > > - test\_index:  
> > > {
> > > - settings:  
> > > {
> > > - index:  
> > > {
> > > - creation\_date: "1416836998944",
> > > - warmer:  
> > > {
> > > - enabled: "false"  
> > > },
> > > 
> > > - uuid: "R2eL4uvvQbGtLKAaDPrmaQ",
> > > - number\_of\_replicas: "1",
> > > - aggs:  
> > > {
> > > - group\_by\_age:  
> > > {
> > > - aggs:  
> > > {
> > > - group\_by\_gender:  
> > > {
> > > - aggs:  
> > > {
> > > - average\_balance:  
> > > {
> > > - avg:  
> > > {
> > > - field: "balance"  
> > > }  
> > > }  
> > > },
> > > 
> > > - terms:  
> > > {
> > > - field: "gender",
> > > - order:  
> > > {
> > > - average\_balance: "desc"  
> > > }  
> > > }  
> > > }  
> > > },
> > > 
> > > - range:  
> > > {
> > > - field: "age",
> > > - 
> > > ## ranges: [
> > > 
> > > ## { - to: "29", - from: "20" },
> > > 
> > > ## { - to: "39", - from: "30" },
> > > {  
> > > - to: "49",  
> > > - from: "40"  
> > > }  
> > > ]  
> > > }  
> > > }  
> > > },
> > > 
> > > - number\_of\_shards: "5",
> > > - refresh\_interval: "5s",
> > > - version:  
> > > {
> > > - created: "1040099"  
> > > },
> > > 
> > > - size: "0"  
> > > }  
> > > }  
> > > }
> > > 
> > > }
> > > 
> > > I'm a little confused by "aggs" in my index settings, what does it mean?  
> > > Is it related to index warmers, or index aliases..?
> > > 
> > > Thank you.
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c5dbc63-9d1a-434f-b0b9-0311b2efa21a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Adrien Grand
> 
> --  
> 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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7f63b61-41e5-4fd8-93f6-6f12df6499d1%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6oNqxuLseU%2BrGNgXh8PseZzd301uFe\_KqSRQ-7dPDp%3DQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6oNqxuLseU%2BrGNgXh8PseZzd301uFe_KqSRQ-7dPDp%3DQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:46am UTC](https://discuss.elastic.co/t/what-does-the-aggs-field-in-my-index-settings-represent/20996/5 "2017-07-06T00:46:13Z")

</div>

Closed on July 6, 2017, 12:46am UTC


