# About facet, for some dynamic fields(fields we don't know their names)

**URL:** <https://discuss.elastic.co/t/about-facet-for-some-dynamic-fields-fields-we-dont-know-their-names/13919>\
**Category:** Elasticsearch\
**Created:** [October 11, 2013, 9:03am UTC](https://discuss.elastic.co/t/about-facet-for-some-dynamic-fields-fields-we-dont-know-their-names/13919 "2013-10-11T09:03:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seven\_Q](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seven_q/32/2050_2.png) [@Seven\_Q](https://discuss.elastic.co/u/Seven_Q)\
**Post date:** [October 11, 2013, 9:03am UTC](https://discuss.elastic.co/t/about-facet-for-some-dynamic-fields-fields-we-dont-know-their-names/13919/1 "2013-10-11T09:03:52Z")

</div>

Here is the json:  
{ "id": "100004",  
"description": "some description",  
"brand": "brand",  
"displayName": "product",  
"customProperties": {  
"property1": "value1",  
"property2": "value2" ....  
}  
}  
child elements of "customProperties" could be added any time, and we can't  
know the names.  
So,I want to facet all of them one time.  
Is there any solutions? I can't find anything about that, can Elasticsearch  
support that right now?  
Thanks!!!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 11, 2013, 3:01pm UTC](https://discuss.elastic.co/t/about-facet-for-some-dynamic-fields-fields-we-dont-know-their-names/13919/2 "2013-10-11T15:01:36Z")

</div>

When a new field is added to the document type, the mapping is  
automatically updated by default. You can get the mapping and facet on  
whichever fields you want.

Cheers,

Ivan

On Fri, Oct 11, 2013 at 2:03 AM, Seven Q [anson.kyo@gmail.com](mailto:anson.kyo@gmail.com) wrote:

> Here is the json:  
> { "id": "100004",  
> "description": "some description",  
> "brand": "brand",  
> "displayName": "product",  
> "customProperties": {  
> "property1": "value1",  
> "property2": "value2" ....  
> }  
> }  
> child elements of "customProperties" could be added any time, and we  
> can't know the names.  
> So,I want to facet all of them one time.  
> Is there any solutions? I can't find anything about that, can  
> Elasticsearch support that right now?  
> Thanks!!!
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:12am UTC](https://discuss.elastic.co/t/about-facet-for-some-dynamic-fields-fields-we-dont-know-their-names/13919/3 "2017-07-06T02:12:50Z")

</div>


