# Is a field named "properties" valid?

**URL:** <https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601>\
**Category:** Elasticsearch\
**Created:** [October 14, 2011, 2:13pm UTC](https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601 "2011-10-14T14:13:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Hoffman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_hoffman/32/1872_2.png) [@Nick\_Hoffman](https://discuss.elastic.co/u/Nick_Hoffman)\
**Post date:** [October 14, 2011, 2:13pm UTC](https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601/1 "2011-10-14T14:13:54Z")

</div>

When creating a mapping, setting a key to "properties" enables you to nest  
fields. Does that mean that you can't name a field "properties"?

I ask because my documents have a field named properties. For example, check  
out lines 32-34 here:

> <https://gist.github.com/nickhoffman/6e935e022c759fbc8d61>

Is that valid?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 14, 2011, 4:01pm UTC](https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601/2 "2011-10-14T16:01:50Z")

</div>

It should be ok, have you seen problems with it? One way to verify is to use  
get mapping and check that the mappings you placed are the correct ones.

On Fri, Oct 14, 2011 at 4:13 PM, Nick Hoffman [nick@deadorange.com](mailto:nick@deadorange.com) wrote:

> When creating a mapping, setting a key to "properties" enables you to nest  
> fields. Does that mean that you can't name a field "properties"?
> 
> I ask because my documents have a field named properties. For example,  
> check out lines 32-34 here:  
> [1-settings.js · GitHub](https://gist.github.com/6e935e022c759fbc8d61#file_2_mapping.js)
> 
> Is that valid?

---

<div class="post-metadata">

**Author:** ![Nick\_Hoffman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_hoffman/32/1872_2.png) [@Nick\_Hoffman](https://discuss.elastic.co/u/Nick_Hoffman)\
**Post date:** [October 14, 2011, 4:11pm UTC](https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601/3 "2011-10-14T16:11:01Z")

</div>

I grabbed the mapping via GET  
([https://gist.github.com/6e935e022c759fbc8d61#file\_2\_mapping.js](https://gist.github.com/6e935e022c759fbc8d61#file_2_mapping.js)), and the  
structure looks correct to me. I just wasn't sure if "properties" is a  
reserved word.

---

<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, 3:51am UTC](https://discuss.elastic.co/t/is-a-field-named-properties-valid/5601/4 "2017-07-06T03:51:53Z")

</div>

Closed on July 6, 2017, 3:51am UTC


