# Need help getting dynamic facets for the aggregation

**URL:** <https://discuss.elastic.co/t/need-help-getting-dynamic-facets-for-the-aggregation/20748>\
**Category:** Elasticsearch\
**Created:** [November 14, 2014, 12:55pm UTC](https://discuss.elastic.co/t/need-help-getting-dynamic-facets-for-the-aggregation/20748 "2014-11-14T12:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [November 14, 2014, 12:55pm UTC](https://discuss.elastic.co/t/need-help-getting-dynamic-facets-for-the-aggregation/20748/1 "2014-11-14T12:55:36Z")

</div>

Hi All,

I builded index with the help of following git hub issue to get the dynamic  
fields as facets.

> <https://github.com/elastic/elasticsearch/issues/5789>

I have the following schema to index two values PROPERTY1 and PROPERTY2.

"props": {

```
             "type": "nested",

             "properties": {

                "key": {

                   "type": "string",

                   "index": "not_analyzed"

                },

                "value": {

                   "type": "string",

                   "index": "not_analyzed"

                }

             }
          }

```

Now i want to display the top ten facets for those dynamic fields.please  
suggest me in this.

Thanks

phani

--  
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/b5a699f8-c84a-4da5-8994-b46e766cf9bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b5a699f8-c84a-4da5-8994-b46e766cf9bb%40googlegroups.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:50am UTC](https://discuss.elastic.co/t/need-help-getting-dynamic-facets-for-the-aggregation/20748/2 "2017-07-06T00:50:00Z")

</div>

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


