# Urgent :adding fields mapping for nested document property

**URL:** <https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968>\
**Category:** Elasticsearch\
**Created:** [February 4, 2015, 4:53am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968 "2015-02-04T04:53:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 4, 2015, 4:53am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/1 "2015-02-04T04:53:28Z")

</div>

Hi,

We have Document structure like this

Document  
{  
Key1:Value1  
Key2:Value2  
Key3:Value3,  
Key4:Valu4  
List\<key,Value\> AdditionalFields;  
}

Additional fields are the dynamic fields(they can grow or sink) and these  
fields need to obey certain behavior like analyzed /not analyzed or this  
sort of stuff when they created.

One thing I don't know /I don't understand is how we define behavior on  
keys (Fields /field names) from Additional fields ?

For below example document :

Document  
{  
Key1:Value1,  
Key2:Value2  
AdditionalFields  
{  
Key3:Value3  
}

If I define Key3 as not analyzed in the index definition then whether  
Value3 is not going to analyzed

Or Is there a way to do this ?

Regards,  
Nagaraju

--  
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/dc30baf0-7289-4aac-a45e-092fb101b296%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc30baf0-7289-4aac-a45e-092fb101b296%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 4, 2015, 5:51am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/2 "2015-02-04T05:51:17Z")

</div>

In other words additional fields are stored as  
{  
{  
Key:"field1"  
Value:"value1"  
}  
{  
Key:"field2"  
Value:"value2"  
}

}

field1 is created after initial field mapping, now how do I define field1  
as not analyzed when it is created or do I need to change document structure

On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:

> Hi,
> 
> We have Document structure like this
> 
> Document  
> {  
> Key1:Value1  
> Key2:Value2  
> Key3:Value3,  
> Key4:Valu4  
> List\<key,Value\> AdditionalFields;  
> }
> 
> Additional fields are the dynamic fields(they can grow or sink) and these  
> fields need to obey certain behavior like analyzed /not analyzed or this  
> sort of stuff when they created.
> 
> One thing I don't know /I don't understand is how we define behavior on  
> keys (Fields /field names) from Additional fields ?
> 
> For below example document :
> 
> Document  
> {  
> Key1:Value1,  
> Key2:Value2  
> AdditionalFields  
> {  
> Key3:Value3  
> }
> 
> If I define Key3 as not analyzed in the index definition then whether  
> Value3 is not going to analyzed
> 
> Or Is there a way to do this ?
> 
> Regards,  
> Nagaraju

--  
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/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 4, 2015, 6:00am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/3 "2015-02-04T06:00:46Z")

</div>

I think you are looking after templates.

David

> Le 4 févr. 2015 à 06:51, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a écrit :
> 
> In other words additional fields are stored as  
> {  
> {  
> Key:"field1"  
> Value:"value1"  
> }  
> {  
> Key:"field2"  
> Value:"value2"  
> }
> 
> }
> 
> field1 is created after initial field mapping, now how do I define field1 as not analyzed when it is created or do I need to change document structure
> 
> > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:  
> > Hi,
> > 
> > We have Document structure like this
> > 
> > Document  
> > {  
> > Key1:Value1  
> > Key2:Value2  
> > Key3:Value3,  
> > Key4:Valu4  
> > List\<key,Value\> AdditionalFields;  
> > }
> > 
> > Additional fields are the dynamic fields(they can grow or sink) and these fields need to obey certain behavior like analyzed /not analyzed or this sort of stuff when they created.
> > 
> > One thing I don't know /I don't understand is how we define behavior on keys (Fields /field names) from Additional fields ?
> > 
> > For below example document :
> > 
> > Document  
> > {  
> > Key1:Value1,  
> > Key2:Value2  
> > AdditionalFields  
> > {  
> > Key3:Value3  
> > }
> > 
> > If I define Key3 as not analyzed in the index definition then whether Value3 is not going to analyzed
> > 
> > Or Is there a way to do this ?
> > 
> > Regards,  
> > Nagaraju
> 
> --  
> 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/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> \<Unknow\_SizeDocs.png\>

--  
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/D3AD9049-7D8A-4CA1-9CC4-E19F8D9301B7%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/D3AD9049-7D8A-4CA1-9CC4-E19F8D9301B7%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 24, 2015, 5:19pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/4 "2015-02-24T17:19:50Z")

</div>

hi ,  
Dynamic template is nice option which I tired but my requirement is  
I want to update the key 3 mapping before indexing ..

meaning I indexed few documents with the below structure

Document  
{  
Key1:Value1,  
Key2:Value2

}

now I want to update the mapping for key 3 in the below structure and index  
some more documents ,do you have any ideas

Document  
{  
Key1:Value1,  
Key2:Value2  
AdditionalFields  
{  
Key3:Value3  
}  
On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:

> I think you are looking after templates.
> 
> David
> 
> Le 4 févr. 2015 à 06:51, bvnrwork \<[budda...@gmail.com](mailto:budda...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> In other words additional fields are stored as  
> {  
> {  
> Key:"field1"  
> Value:"value1"  
> }  
> {  
> Key:"field2"  
> Value:"value2"  
> }
> 
> }
> 
> field1 is created after initial field mapping, now how do I define field1  
> as not analyzed when it is created or do I need to change document structure
> 
> On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> 
> > Hi,
> > 
> > We have Document structure like this
> > 
> > Document  
> > {  
> > Key1:Value1  
> > Key2:Value2  
> > Key3:Value3,  
> > Key4:Valu4  
> > List\<key,Value\> AdditionalFields;  
> > }
> > 
> > Additional fields are the dynamic fields(they can grow or sink) and these  
> > fields need to obey certain behavior like analyzed /not analyzed or this  
> > sort of stuff when they created.
> > 
> > One thing I don't know /I don't understand is how we define behavior on  
> > keys (Fields /field names) from Additional fields ?
> > 
> > For below example document :
> > 
> > Document  
> > {  
> > Key1:Value1,  
> > Key2:Value2  
> > AdditionalFields  
> > {  
> > Key3:Value3  
> > }
> > 
> > If I define Key3 as not analyzed in the index definition then whether  
> > Value3 is not going to analyzed
> > 
> > Or Is there a way to do this ?
> > 
> > Regards,  
> > Nagaraju
> > 
> > --  
> > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> \<Unknow\_SizeDocs.png\>

--  
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/6554f004-53ef-466d-9641-76df008a646b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6554f004-53ef-466d-9641-76df008a646b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 25, 2015, 1:32am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/5 "2015-02-25T01:32:53Z")

</div>

Here is my example :

1. Index creation request

{

"settings": {

```
"index": {

  "number_of_shards": 1,

  "number_of_replicas": 0

}

```

},

"mappings": {

```
"document": {

  "dynamic": "strict",

  "properties": {

    "id": {

      "type": "integer"

    },

    "rank": {

      "type": "float"

    },

    "title": {

      "type": "string"

    },

    "text": {

      "type": "string"

    },

    "path": {

      "type": "string"

    },

    "

    "fields": {

      "type": "object",

      "properties": {

        "item": {

          "type": "object",

          "properties": {}

        },

        "keys": {

          "type": "string"

        },

        "values": {

          "type": "object",

          "properties": {}

        }

      }

    }

  }

}

```

},

"aliases": {

```
"dfm032": {}

```

}

}

2)Index a document

{ "index" : {"\_type":"document","\_id":"1"} }

{"id":1,"rank":0.0,"text":"One","fields":{}}  
3) Later use feels that he needs a new field with specific behavior so  
trying to update the behavior

I want create this new field called "name" in fields not under document

{  
"document": {  
"properties": {  
"name": {  
"index": "analyzed",  
"type": "string",  
"fields": {  
"name\_na": {  
"index": "not\_analyzed",  
"type": "string"  
}  
}  
}  
}  
}  
}

1. After updating the mapping ,index a new document with name field

{ "index" : {"\_type":"document","\_id":"2"} }  
{"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}

I don't know how to specify that new "name" field should be under fields .

Due to this 4th step fails as a enabled strict dynamic mapping

Can you help me to specify the new field "name" under fields of document ?

On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:

> I think you are looking after templates.
> 
> David
> 
> Le 4 févr. 2015 à 06:51, bvnrwork \<[budda...@gmail.com](mailto:budda...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> In other words additional fields are stored as  
> {  
> {  
> Key:"field1"  
> Value:"value1"  
> }  
> {  
> Key:"field2"  
> Value:"value2"  
> }
> 
> }
> 
> field1 is created after initial field mapping, now how do I define field1  
> as not analyzed when it is created or do I need to change document structure
> 
> On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> 
> > Hi,
> > 
> > We have Document structure like this
> > 
> > Document  
> > {  
> > Key1:Value1  
> > Key2:Value2  
> > Key3:Value3,  
> > Key4:Valu4  
> > List\<key,Value\> AdditionalFields;  
> > }
> > 
> > Additional fields are the dynamic fields(they can grow or sink) and these  
> > fields need to obey certain behavior like analyzed /not analyzed or this  
> > sort of stuff when they created.
> > 
> > One thing I don't know /I don't understand is how we define behavior on  
> > keys (Fields /field names) from Additional fields ?
> > 
> > For below example document :
> > 
> > Document  
> > {  
> > Key1:Value1,  
> > Key2:Value2  
> > AdditionalFields  
> > {  
> > Key3:Value3  
> > }
> > 
> > If I define Key3 as not analyzed in the index definition then whether  
> > Value3 is not going to analyzed
> > 
> > Or Is there a way to do this ?
> > 
> > Regards,  
> > Nagaraju
> > 
> > --  
> > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> \<Unknow\_SizeDocs.png\>

--  
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/35ba91e7-4876-400e-8102-a1fe308e3f5e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/35ba91e7-4876-400e-8102-a1fe308e3f5e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 25, 2015, 6:16am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/6 "2015-02-25T06:16:11Z")

</div>

Hello David ,

Any quick help ? please

On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:

> Here is my example :
> 
> 1. Index creation request
> 
> {
> 
> "settings": {
> 
> ```
> "index": {
> 
> "number_of_shards": 1,
> 
> "number_of_replicas": 0
> 
> }
> 
> ```
> 
> },
> 
> "mappings": {
> 
> ```
> "document": {
> 
> "dynamic": "strict",
> 
> "properties": {
> 
> "id": {
> 
> "type": "integer"
> 
> },
> 
> "rank": {
> 
> "type": "float"
> 
> },
> 
> "title": {
> 
> "type": "string"
> 
> },
> 
> "text": {
> 
> "type": "string"
> 
> },
> 
> "path": {
> 
> "type": "string"
> 
> },
> 
> "
> 
> "fields": {
> 
> "type": "object",
> 
> "properties": {
> 
> "item": {
> 
> "type": "object",
> 
> "properties": {}
> 
> },
> 
> "keys": {
> 
> "type": "string"
> 
> },
> 
> "values": {
> 
> "type": "object",
> 
> "properties": {}
> 
> }
> 
> }
> 
> }
> 
> }
> 
> }
> 
> ```
> 
> },
> 
> "aliases": {
> 
> ```
> "dfm032": {}
> 
> ```
> 
> }
> 
> }
> 
> 2)Index a document
> 
> { "index" : {"\_type":"document","\_id":"1"} }
> 
> {"id":1,"rank":0.0,"text":"One","fields":{}}  
> 3) Later use feels that he needs a new field with specific behavior so  
> trying to update the behavior
> 
> I want create this new field called "name" in fields not under document
> 
> {  
> "document": {  
> "properties": {  
> "name": {  
> "index": "analyzed",  
> "type": "string",  
> "fields": {  
> "name\_na": {  
> "index": "not\_analyzed",  
> "type": "string"  
> }  
> }  
> }  
> }  
> }  
> }
> 
> 1. After updating the mapping ,index a new document with name field
> 
> { "index" : {"\_type":"document","\_id":"2"} }  
> {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> 
> I don't know how to specify that new "name" field should be under fields .
> 
> Due to this 4th step fails as a enabled strict dynamic mapping
> 
> Can you help me to specify the new field "name" under fields of document ?
> 
> On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
> 
> > I think you are looking after templates.
> > 
> > David
> > 
> > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > 
> > In other words additional fields are stored as  
> > {  
> > {  
> > Key:"field1"  
> > Value:"value1"  
> > }  
> > {  
> > Key:"field2"  
> > Value:"value2"  
> > }
> > 
> > }
> > 
> > field1 is created after initial field mapping, now how do I define field1  
> > as not analyzed when it is created or do I need to change document structure
> > 
> > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> > 
> > > Hi,
> > > 
> > > We have Document structure like this
> > > 
> > > Document  
> > > {  
> > > Key1:Value1  
> > > Key2:Value2  
> > > Key3:Value3,  
> > > Key4:Valu4  
> > > List\<key,Value\> AdditionalFields;  
> > > }
> > > 
> > > Additional fields are the dynamic fields(they can grow or sink) and  
> > > these fields need to obey certain behavior like analyzed /not analyzed or  
> > > this sort of stuff when they created.
> > > 
> > > One thing I don't know /I don't understand is how we define behavior on  
> > > keys (Fields /field names) from Additional fields ?
> > > 
> > > For below example document :
> > > 
> > > Document  
> > > {  
> > > Key1:Value1,  
> > > Key2:Value2  
> > > AdditionalFields  
> > > {  
> > > Key3:Value3  
> > > }
> > > 
> > > If I define Key3 as not analyzed in the index definition then whether  
> > > Value3 is not going to analyzed
> > > 
> > > Or Is there a way to do this ?
> > > 
> > > Regards,  
> > > Nagaraju
> > > 
> > > --  
> > > 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/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > \<Unknow\_SizeDocs.png\>

--  
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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [February 26, 2015, 7:16pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/7 "2015-02-26T19:16:01Z")

</div>

Any one has any ideas 🙂

Regards  
Nagaraju  
908 517 6981

On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:

> Hello David ,
> 
> Any quick help ? please
> 
> On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
> 
> > Here is my example :
> > 
> > 1. Index creation request
> > 
> > {
> > 
> > "settings": {
> > 
> > ```
> > "index": {
> > 
> > "number_of_shards": 1,
> > 
> > "number_of_replicas": 0
> > 
> > }
> > 
> > ```
> > 
> > },
> > 
> > "mappings": {
> > 
> > ```
> > "document": {
> > 
> > "dynamic": "strict",
> > 
> > "properties": {
> > 
> > "id": {
> > 
> > "type": "integer"
> > 
> > },
> > 
> > "rank": {
> > 
> > "type": "float"
> > 
> > },
> > 
> > "title": {
> > 
> > "type": "string"
> > 
> > },
> > 
> > "text": {
> > 
> > "type": "string"
> > 
> > },
> > 
> > "path": {
> > 
> > "type": "string"
> > 
> > },
> > 
> > "
> > 
> > "fields": {
> > 
> > "type": "object",
> > 
> > "properties": {
> > 
> > "item": {
> > 
> > "type": "object",
> > 
> > "properties": {}
> > 
> > },
> > 
> > "keys": {
> > 
> > "type": "string"
> > 
> > },
> > 
> > "values": {
> > 
> > "type": "object",
> > 
> > "properties": {}
> > 
> > }
> > 
> > }
> > 
> > }
> > 
> > }
> > 
> > }
> > 
> > ```
> > 
> > },
> > 
> > "aliases": {
> > 
> > ```
> > "dfm032": {}
> > 
> > ```
> > 
> > }
> > 
> > }
> > 
> > 2)Index a document
> > 
> > { "index" : {"\_type":"document","\_id":"1"} }
> > 
> > {"id":1,"rank":0.0,"text":"One","fields":{}}  
> > 3) Later use feels that he needs a new field with specific behavior so  
> > trying to update the behavior
> > 
> > I want create this new field called "name" in fields not under document
> > 
> > {  
> > "document": {  
> > "properties": {  
> > "name": {  
> > "index": "analyzed",  
> > "type": "string",  
> > "fields": {  
> > "name\_na": {  
> > "index": "not\_analyzed",  
> > "type": "string"  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > 1. After updating the mapping ,index a new document with name field
> > 
> > { "index" : {"\_type":"document","\_id":"2"} }  
> > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > 
> > I don't know how to specify that new "name" field should be under fields .
> > 
> > Due to this 4th step fails as a enabled strict dynamic mapping
> > 
> > Can you help me to specify the new field "name" under fields of document  
> > ?
> > 
> > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
> > 
> > > I think you are looking after templates.
> > > 
> > > David
> > > 
> > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > 
> > > In other words additional fields are stored as  
> > > {  
> > > {  
> > > Key:"field1"  
> > > Value:"value1"  
> > > }  
> > > {  
> > > Key:"field2"  
> > > Value:"value2"  
> > > }
> > > 
> > > }
> > > 
> > > field1 is created after initial field mapping, now how do I define  
> > > field1 as not analyzed when it is created or do I need to change document  
> > > structure
> > > 
> > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> > > 
> > > > Hi,
> > > > 
> > > > We have Document structure like this
> > > > 
> > > > Document  
> > > > {  
> > > > Key1:Value1  
> > > > Key2:Value2  
> > > > Key3:Value3,  
> > > > Key4:Valu4  
> > > > List\<key,Value\> AdditionalFields;  
> > > > }
> > > > 
> > > > Additional fields are the dynamic fields(they can grow or sink) and  
> > > > these fields need to obey certain behavior like analyzed /not analyzed or  
> > > > this sort of stuff when they created.
> > > > 
> > > > One thing I don't know /I don't understand is how we define behavior  
> > > > on keys (Fields /field names) from Additional fields ?
> > > > 
> > > > For below example document :
> > > > 
> > > > Document  
> > > > {  
> > > > Key1:Value1,  
> > > > Key2:Value2  
> > > > AdditionalFields  
> > > > {  
> > > > Key3:Value3  
> > > > }
> > > > 
> > > > If I define Key3 as not analyzed in the index definition then whether  
> > > > Value3 is not going to analyzed
> > > > 
> > > > Or Is there a way to do this ?
> > > > 
> > > > Regards,  
> > > > Nagaraju
> > > > 
> > > > --  
> > > > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > \<Unknow\_SizeDocs.png\>
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAFtuXXL3sVbhVaHm-\_\_\_jTDZe\_EWBLO8KrgZnON22Qi-vP\_Jhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXL3sVbhVaHm-___jTDZe_EWBLO8KrgZnON22Qi-vP_Jhg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [March 4, 2015, 6:05pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/8 "2015-03-04T18:05:04Z")

</div>

hi ,

Please let me know if some one has any ideas

Regards  
Nagaraju  
908 517 6981

On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)  
wrote:

> Any one has any ideas 🙂
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:
> 
> > Hello David ,
> > 
> > Any quick help ? please
> > 
> > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
> > 
> > > Here is my example :
> > > 
> > > 1. Index creation request
> > > 
> > > {
> > > 
> > > "settings": {
> > > 
> > > ```
> > > "index": {
> > > 
> > > "number_of_shards": 1,
> > > 
> > > "number_of_replicas": 0
> > > 
> > > }
> > > 
> > > ```
> > > 
> > > },
> > > 
> > > "mappings": {
> > > 
> > > ```
> > > "document": {
> > > 
> > > "dynamic": "strict",
> > > 
> > > "properties": {
> > > 
> > > "id": {
> > > 
> > > "type": "integer"
> > > 
> > > },
> > > 
> > > "rank": {
> > > 
> > > "type": "float"
> > > 
> > > },
> > > 
> > > "title": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "text": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "path": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "
> > > 
> > > "fields": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {
> > > 
> > > "item": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {}
> > > 
> > > },
> > > 
> > > "keys": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "values": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {}
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > ```
> > > 
> > > },
> > > 
> > > "aliases": {
> > > 
> > > ```
> > > "dfm032": {}
> > > 
> > > ```
> > > 
> > > }
> > > 
> > > }
> > > 
> > > 2)Index a document
> > > 
> > > { "index" : {"\_type":"document","\_id":"1"} }
> > > 
> > > {"id":1,"rank":0.0,"text":"One","fields":{}}  
> > > 3) Later use feels that he needs a new field with specific behavior so  
> > > trying to update the behavior
> > > 
> > > I want create this new field called "name" in fields not under document
> > > 
> > > {  
> > > "document": {  
> > > "properties": {  
> > > "name": {  
> > > "index": "analyzed",  
> > > "type": "string",  
> > > "fields": {  
> > > "name\_na": {  
> > > "index": "not\_analyzed",  
> > > "type": "string"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > 1. After updating the mapping ,index a new document with name field
> > > 
> > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > 
> > > I don't know how to specify that new "name" field should be under fields  
> > > .
> > > 
> > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > 
> > > Can you help me to specify the new field "name" under fields of document  
> > > ?
> > > 
> > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
> > > 
> > > > I think you are looking after templates.
> > > > 
> > > > David
> > > > 
> > > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > > 
> > > > In other words additional fields are stored as  
> > > > {  
> > > > {  
> > > > Key:"field1"  
> > > > Value:"value1"  
> > > > }  
> > > > {  
> > > > Key:"field2"  
> > > > Value:"value2"  
> > > > }
> > > > 
> > > > }
> > > > 
> > > > field1 is created after initial field mapping, now how do I define  
> > > > field1 as not analyzed when it is created or do I need to change document  
> > > > structure
> > > > 
> > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > We have Document structure like this
> > > > > 
> > > > > Document  
> > > > > {  
> > > > > Key1:Value1  
> > > > > Key2:Value2  
> > > > > Key3:Value3,  
> > > > > Key4:Valu4  
> > > > > List\<key,Value\> AdditionalFields;  
> > > > > }
> > > > > 
> > > > > Additional fields are the dynamic fields(they can grow or sink) and  
> > > > > these fields need to obey certain behavior like analyzed /not analyzed or  
> > > > > this sort of stuff when they created.
> > > > > 
> > > > > One thing I don't know /I don't understand is how we define behavior  
> > > > > on keys (Fields /field names) from Additional fields ?
> > > > > 
> > > > > For below example document :
> > > > > 
> > > > > Document  
> > > > > {  
> > > > > Key1:Value1,  
> > > > > Key2:Value2  
> > > > > AdditionalFields  
> > > > > {  
> > > > > Key3:Value3  
> > > > > }
> > > > > 
> > > > > If I define Key3 as not analyzed in the index definition then whether  
> > > > > Value3 is not going to analyzed
> > > > > 
> > > > > Or Is there a way to do this ?
> > > > > 
> > > > > Regards,  
> > > > > Nagaraju
> > > > > 
> > > > > --  
> > > > > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > \<Unknow\_SizeDocs.png\>
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 4, 2015, 6:16pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/9 "2015-03-04T18:16:03Z")

</div>

Could you GIST a full script?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 4 mars 2015 à 19:05, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a écrit :
> 
> hi ,
> 
> Please let me know if some one has any ideas
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> > On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:  
> > Any one has any ideas 🙂
> > 
> > Regards  
> > Nagaraju  
> > 908 517 6981
> > 
> > > On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:  
> > > Hello David ,
> > > 
> > > Any quick help ? please
> > > 
> > > > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:  
> > > > Here is my example :
> > > > 
> > > > 1. Index creation request
> > > > 
> > > > {
> > > > 
> > > > "settings": {
> > > > 
> > > > ```
> > > > "index": {
> > > > 
> > > > "number_of_shards": 1,
> > > > 
> > > > "number_of_replicas": 0
> > > > 
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > },
> > > > 
> > > > "mappings": {
> > > > 
> > > > ```
> > > > "document": {
> > > > 
> > > > "dynamic": "strict",
> > > > 
> > > > "properties": {
> > > > 
> > > > "id": {
> > > > 
> > > > "type": "integer"
> > > > 
> > > > },
> > > > 
> > > > "rank": {
> > > > 
> > > > "type": "float"
> > > > 
> > > > },
> > > > 
> > > > "title": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "text": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "path": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "
> > > > 
> > > > "fields": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {
> > > > 
> > > > "item": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {}
> > > > 
> > > > },
> > > > 
> > > > "keys": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "values": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {}
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > },
> > > > 
> > > > "aliases": {
> > > > 
> > > > ```
> > > > "dfm032": {}
> > > > 
> > > > ```
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > 2)Index a document
> > > > 
> > > > { "index" : {"\_type":"document","\_id":"1"} }
> > > > 
> > > > {"id":1,"rank":0.0,"text":"One","fields":{}}
> > > > 
> > > > 1. Later use feels that he needs a new field with specific behavior so trying to update the behavior
> > > > 
> > > > I want create this new field called "name" in fields not under document
> > > > 
> > > > {  
> > > > "document": {  
> > > > "properties": {  
> > > > "name": {  
> > > > "index": "analyzed",  
> > > > "type": "string",  
> > > > "fields": {  
> > > > "name\_na": {  
> > > > "index": "not\_analyzed",  
> > > > "type": "string"  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > 1. After updating the mapping ,index a new document with name field
> > > > 
> > > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > > 
> > > > I don't know how to specify that new "name" field should be under fields .
> > > > 
> > > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > > 
> > > > Can you help me to specify the new field "name" under fields of document ?
> > > > 
> > > > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:  
> > > > > I think you are looking after templates.
> > > > > 
> > > > > David
> > > > > 
> > > > > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > > > > 
> > > > > > In other words additional fields are stored as  
> > > > > > {  
> > > > > > {  
> > > > > > Key:"field1"  
> > > > > > Value:"value1"  
> > > > > > }  
> > > > > > {  
> > > > > > Key:"field2"  
> > > > > > Value:"value2"  
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > field1 is created after initial field mapping, now how do I define field1 as not analyzed when it is created or do I need to change document structure
> > > > > > 
> > > > > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:  
> > > > > > > Hi,
> > > > > > > 
> > > > > > > We have Document structure like this
> > > > > > > 
> > > > > > > Document  
> > > > > > > {  
> > > > > > > Key1:Value1  
> > > > > > > Key2:Value2  
> > > > > > > Key3:Value3,  
> > > > > > > Key4:Valu4  
> > > > > > > List\<key,Value\> AdditionalFields;  
> > > > > > > }
> > > > > > > 
> > > > > > > Additional fields are the dynamic fields(they can grow or sink) and these fields need to obey certain behavior like analyzed /not analyzed or this sort of stuff when they created.
> > > > > > > 
> > > > > > > One thing I don't know /I don't understand is how we define behavior on keys (Fields /field names) from Additional fields ?
> > > > > > > 
> > > > > > > For below example document :
> > > > > > > 
> > > > > > > Document  
> > > > > > > {  
> > > > > > > Key1:Value1,  
> > > > > > > Key2:Value2  
> > > > > > > AdditionalFields  
> > > > > > > {  
> > > > > > > Key3:Value3  
> > > > > > > }
> > > > > > > 
> > > > > > > If I define Key3 as not analyzed in the index definition then whether Value3 is not going to analyzed
> > > > > > > 
> > > > > > > Or Is there a way to do this ?
> > > > > > > 
> > > > > > > Regards,  
> > > > > > > Nagaraju
> > > > > > 
> > > > > > --  
> > > > > > 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/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > > > > \<Unknow\_SizeDocs.png\>
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [March 4, 2015, 6:22pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/10 "2015-03-04T18:22:09Z")

</div>

Hello David ,

I want to add the field mapping after ingestion is done and have specific  
document structure Document{ Id, fields{key,value}

I could able to add field mapping under document using the script but could  
not under fields

so how do I specify "fields " path for field mapping when new fields added

Can you look at my script

Regards  
Nagaraju  
908 517 6981

On Wed, Mar 4, 2015 at 1:16 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Could you GIST a full script?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 mars 2015 à 19:05, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a  
> écrit :
> 
> hi ,
> 
> Please let me know if some one has any ideas
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju \<[budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)
> 
> > wrote:
> 
> > Any one has any ideas 🙂
> > 
> > Regards  
> > Nagaraju  
> > 908 517 6981
> > 
> > On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:
> > 
> > > Hello David ,
> > > 
> > > Any quick help ? please
> > > 
> > > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
> > > 
> > > > Here is my example :
> > > > 
> > > > 1. Index creation request
> > > > 
> > > > {
> > > > 
> > > > "settings": {
> > > > 
> > > > ```
> > > > "index": {
> > > > 
> > > > "number_of_shards": 1,
> > > > 
> > > > "number_of_replicas": 0
> > > > 
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > },
> > > > 
> > > > "mappings": {
> > > > 
> > > > ```
> > > > "document": {
> > > > 
> > > > "dynamic": "strict",
> > > > 
> > > > "properties": {
> > > > 
> > > > "id": {
> > > > 
> > > > "type": "integer"
> > > > 
> > > > },
> > > > 
> > > > "rank": {
> > > > 
> > > > "type": "float"
> > > > 
> > > > },
> > > > 
> > > > "title": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "text": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "path": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "
> > > > 
> > > > "fields": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {
> > > > 
> > > > "item": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {}
> > > > 
> > > > },
> > > > 
> > > > "keys": {
> > > > 
> > > > "type": "string"
> > > > 
> > > > },
> > > > 
> > > > "values": {
> > > > 
> > > > "type": "object",
> > > > 
> > > > "properties": {}
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > },
> > > > 
> > > > "aliases": {
> > > > 
> > > > ```
> > > > "dfm032": {}
> > > > 
> > > > ```
> > > > 
> > > > }
> > > > 
> > > > }
> > > > 
> > > > 2)Index a document
> > > > 
> > > > { "index" : {"\_type":"document","\_id":"1"} }
> > > > 
> > > > {"id":1,"rank":0.0,"text":"One","fields":{}}  
> > > > 3) Later use feels that he needs a new field with specific behavior so  
> > > > trying to update the behavior
> > > > 
> > > > I want create this new field called "name" in fields not under document
> > > > 
> > > > {  
> > > > "document": {  
> > > > "properties": {  
> > > > "name": {  
> > > > "index": "analyzed",  
> > > > "type": "string",  
> > > > "fields": {  
> > > > "name\_na": {  
> > > > "index": "not\_analyzed",  
> > > > "type": "string"  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > 1. After updating the mapping ,index a new document with name field
> > > > 
> > > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > > 
> > > > I don't know how to specify that new "name" field should be under  
> > > > fields .
> > > > 
> > > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > > 
> > > > Can you help me to specify the new field "name" under fields of  
> > > > document ?
> > > > 
> > > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
> > > > 
> > > > > I think you are looking after templates.
> > > > > 
> > > > > David
> > > > > 
> > > > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > > > 
> > > > > In other words additional fields are stored as  
> > > > > {  
> > > > > {  
> > > > > Key:"field1"  
> > > > > Value:"value1"  
> > > > > }  
> > > > > {  
> > > > > Key:"field2"  
> > > > > Value:"value2"  
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > field1 is created after initial field mapping, now how do I define  
> > > > > field1 as not analyzed when it is created or do I need to change document  
> > > > > structure
> > > > > 
> > > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > We have Document structure like this
> > > > > > 
> > > > > > Document  
> > > > > > {  
> > > > > > Key1:Value1  
> > > > > > Key2:Value2  
> > > > > > Key3:Value3,  
> > > > > > Key4:Valu4  
> > > > > > List\<key,Value\> AdditionalFields;  
> > > > > > }
> > > > > > 
> > > > > > Additional fields are the dynamic fields(they can grow or sink) and  
> > > > > > these fields need to obey certain behavior like analyzed /not analyzed or  
> > > > > > this sort of stuff when they created.
> > > > > > 
> > > > > > One thing I don't know /I don't understand is how we define behavior  
> > > > > > on keys (Fields /field names) from Additional fields ?
> > > > > > 
> > > > > > For below example document :
> > > > > > 
> > > > > > Document  
> > > > > > {  
> > > > > > Key1:Value1,  
> > > > > > Key2:Value2  
> > > > > > AdditionalFields  
> > > > > > {  
> > > > > > Key3:Value3  
> > > > > > }
> > > > > > 
> > > > > > If I define Key3 as not analyzed in the index definition then  
> > > > > > whether Value3 is not going to analyzed
> > > > > > 
> > > > > > Or Is there a way to do this ?
> > > > > > 
> > > > > > Regards,  
> > > > > > Nagaraju
> > > > > > 
> > > > > > --  
> > > > > > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%  
> > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > \<Unknow\_SizeDocs.png\>
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 4, 2015, 6:29pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/11 "2015-03-04T18:29:58Z")

</div>

Where is your script?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 4 mars 2015 à 19:22, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a écrit :
> 
> Hello David ,
> 
> I want to add the field mapping after ingestion is done and have specific document structure Document{ Id, fields{key,value}
> 
> I could able to add field mapping under document using the script but could not under fields
> 
> so how do I specify "fields " path for field mapping when new fields added
> 
> Can you look at my script
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> > On Wed, Mar 4, 2015 at 1:16 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > Could you GIST a full script?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > > Le 4 mars 2015 à 19:05, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a écrit :
> > > 
> > > hi ,
> > > 
> > > Please let me know if some one has any ideas
> > > 
> > > Regards  
> > > Nagaraju  
> > > 908 517 6981
> > > 
> > > > On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:  
> > > > Any one has any ideas 🙂
> > > > 
> > > > Regards  
> > > > Nagaraju  
> > > > 908 517 6981
> > > > 
> > > > > On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:  
> > > > > Hello David ,
> > > > > 
> > > > > Any quick help ? please
> > > > > 
> > > > > > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:  
> > > > > > Here is my example :
> > > > > > 
> > > > > > 1. Index creation request
> > > > > > 
> > > > > > {
> > > > > > 
> > > > > > "settings": {
> > > > > > 
> > > > > > ```
> > > > > > "index": {
> > > > > > 
> > > > > > "number_of_shards": 1,
> > > > > > 
> > > > > > "number_of_replicas": 0
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "mappings": {
> > > > > > 
> > > > > > ```
> > > > > > "document": {
> > > > > > 
> > > > > > "dynamic": "strict",
> > > > > > 
> > > > > > "properties": {
> > > > > > 
> > > > > > "id": {
> > > > > > 
> > > > > > "type": "integer"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "rank": {
> > > > > > 
> > > > > > "type": "float"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "title": {
> > > > > > 
> > > > > > "type": "string"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "text": {
> > > > > > 
> > > > > > "type": "string"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "path": {
> > > > > > 
> > > > > > "type": "string"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "
> > > > > > 
> > > > > > "fields": {
> > > > > > 
> > > > > > "type": "object",
> > > > > > 
> > > > > > "properties": {
> > > > > > 
> > > > > > "item": {
> > > > > > 
> > > > > > "type": "object",
> > > > > > 
> > > > > > "properties": {}
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "keys": {
> > > > > > 
> > > > > > "type": "string"
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "values": {
> > > > > > 
> > > > > > "type": "object",
> > > > > > 
> > > > > > "properties": {}
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > },
> > > > > > 
> > > > > > "aliases": {
> > > > > > 
> > > > > > ```
> > > > > > "dfm032": {}
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > 2)Index a document
> > > > > > 
> > > > > > { "index" : {"\_type":"document","\_id":"1"} }
> > > > > > 
> > > > > > {"id":1,"rank":0.0,"text":"One","fields":{}}
> > > > > > 
> > > > > > 1. Later use feels that he needs a new field with specific behavior so trying to update the behavior
> > > > > > 
> > > > > > I want create this new field called "name" in fields not under document
> > > > > > 
> > > > > > {  
> > > > > > "document": {  
> > > > > > "properties": {  
> > > > > > "name": {  
> > > > > > "index": "analyzed",  
> > > > > > "type": "string",  
> > > > > > "fields": {  
> > > > > > "name\_na": {  
> > > > > > "index": "not\_analyzed",  
> > > > > > "type": "string"  
> > > > > > }  
> > > > > > }  
> > > > > > }  
> > > > > > }  
> > > > > > }  
> > > > > > }
> > > > > > 
> > > > > > 1. After updating the mapping ,index a new document with name field
> > > > > > 
> > > > > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > > > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > > > > 
> > > > > > I don't know how to specify that new "name" field should be under fields .
> > > > > > 
> > > > > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > > > > 
> > > > > > Can you help me to specify the new field "name" under fields of document ?
> > > > > > 
> > > > > > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:  
> > > > > > > I think you are looking after templates.
> > > > > > > 
> > > > > > > David
> > > > > > > 
> > > > > > > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > > > > > > 
> > > > > > > > In other words additional fields are stored as  
> > > > > > > > {  
> > > > > > > > {  
> > > > > > > > Key:"field1"  
> > > > > > > > Value:"value1"  
> > > > > > > > }  
> > > > > > > > {  
> > > > > > > > Key:"field2"  
> > > > > > > > Value:"value2"  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > }
> > > > > > > > 
> > > > > > > > field1 is created after initial field mapping, now how do I define field1 as not analyzed when it is created or do I need to change document structure
> > > > > > > > 
> > > > > > > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:  
> > > > > > > > > Hi,
> > > > > > > > > 
> > > > > > > > > We have Document structure like this
> > > > > > > > > 
> > > > > > > > > Document  
> > > > > > > > > {  
> > > > > > > > > Key1:Value1  
> > > > > > > > > Key2:Value2  
> > > > > > > > > Key3:Value3,  
> > > > > > > > > Key4:Valu4  
> > > > > > > > > List\<key,Value\> AdditionalFields;  
> > > > > > > > > }
> > > > > > > > > 
> > > > > > > > > Additional fields are the dynamic fields(they can grow or sink) and these fields need to obey certain behavior like analyzed /not analyzed or this sort of stuff when they created.
> > > > > > > > > 
> > > > > > > > > One thing I don't know /I don't understand is how we define behavior on keys (Fields /field names) from Additional fields ?
> > > > > > > > > 
> > > > > > > > > For below example document :
> > > > > > > > > 
> > > > > > > > > Document  
> > > > > > > > > {  
> > > > > > > > > Key1:Value1,  
> > > > > > > > > Key2:Value2  
> > > > > > > > > AdditionalFields  
> > > > > > > > > {  
> > > > > > > > > Key3:Value3  
> > > > > > > > > }
> > > > > > > > > 
> > > > > > > > > If I define Key3 as not analyzed in the index definition then whether Value3 is not going to analyzed
> > > > > > > > > 
> > > > > > > > > Or Is there a way to do this ?
> > > > > > > > > 
> > > > > > > > > Regards,  
> > > > > > > > > Nagaraju
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > 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/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com).  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > > > > > > \<Unknow\_SizeDocs.png\>
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr).
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [March 4, 2015, 8:04pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/12 "2015-03-04T20:04:30Z")

</div>

Here is my example :

1. Index creation request

{

"settings": {

```
"index": {

  "number_of_shards": 1,

  "number_of_replicas": 0

}

```

},

"mappings": {

```
"document": {

  "dynamic": "strict",

  "properties": {

    "id": {

      "type": "integer"

    },

    "rank": {

      "type": "float"

    },

    "title": {

      "type": "string"

    },

    "text": {

      "type": "string"

    },

    "path": {

      "type": "string"

    },

    "

    "fields": {

      "type": "object",

      "properties": {

        "item": {

          "type": "object",

          "properties": {}

        },

        "keys": {

          "type": "string"

        },

        "values": {

          "type": "object",

          "properties": {}

        }

      }

    }

  }

}

```

},

"aliases": {

```
"dfm032": {}

```

}

}

2)Index a document

{ "index" : {"\_type":"document","\_id":"1"} }

{"id":1,"rank":0.0,"text":"One","fields":{}}  
3) Later use feels that he needs a new field with specific behavior so  
trying to update the behavior

I want create this new field called "name" in fields not under document

{  
"document": {  
"properties": {  
"name": {  
"index": "analyzed",  
"type": "string",  
"fields": {  
"name\_na": {  
"index": "not\_analyzed",  
"type": "string"  
}  
}  
}  
}  
}  
}

1. After updating the mapping ,index a new document with name field

{ "index" : {"\_type":"document","\_id":"2"} }  
{"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}

I don't know how to specify that new "name" field should be under fields .

Due to this 4th step fails as a enabled strict dynamic mapping

Can you help me to specify the new field "name" under fields of document ?

Regards  
Nagaraju  
908 517 6981

On Wed, Mar 4, 2015 at 1:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Where is your script?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 mars 2015 à 19:22, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a  
> écrit :
> 
> Hello David ,
> 
> I want to add the field mapping after ingestion is done and have specific  
> document structure Document{ Id, fields{key,value}
> 
> I could able to add field mapping under document using the script but  
> could not under fields
> 
> so how do I specify "fields " path for field mapping when new fields added
> 
> Can you look at my script
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> On Wed, Mar 4, 2015 at 1:16 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Could you GIST a full script?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 mars 2015 à 19:05, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a  
> > écrit :
> > 
> > hi ,
> > 
> > Please let me know if some one has any ideas
> > 
> > Regards  
> > Nagaraju  
> > 908 517 6981
> > 
> > On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju \<  
> > [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)\> wrote:
> > 
> > > Any one has any ideas 🙂
> > > 
> > > Regards  
> > > Nagaraju  
> > > 908 517 6981
> > > 
> > > On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) wrote:
> > > 
> > > > Hello David ,
> > > > 
> > > > Any quick help ? please
> > > > 
> > > > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
> > > > 
> > > > > Here is my example :
> > > > > 
> > > > > 1. Index creation request
> > > > > 
> > > > > {
> > > > > 
> > > > > "settings": {
> > > > > 
> > > > > ```
> > > > > "index": {
> > > > > 
> > > > > "number_of_shards": 1,
> > > > > 
> > > > > "number_of_replicas": 0
> > > > > 
> > > > > }
> > > > > 
> > > > > ```
> > > > > 
> > > > > },
> > > > > 
> > > > > "mappings": {
> > > > > 
> > > > > ```
> > > > > "document": {
> > > > > 
> > > > > "dynamic": "strict",
> > > > > 
> > > > > "properties": {
> > > > > 
> > > > > "id": {
> > > > > 
> > > > > "type": "integer"
> > > > > 
> > > > > },
> > > > > 
> > > > > "rank": {
> > > > > 
> > > > > "type": "float"
> > > > > 
> > > > > },
> > > > > 
> > > > > "title": {
> > > > > 
> > > > > "type": "string"
> > > > > 
> > > > > },
> > > > > 
> > > > > "text": {
> > > > > 
> > > > > "type": "string"
> > > > > 
> > > > > },
> > > > > 
> > > > > "path": {
> > > > > 
> > > > > "type": "string"
> > > > > 
> > > > > },
> > > > > 
> > > > > "
> > > > > 
> > > > > "fields": {
> > > > > 
> > > > > "type": "object",
> > > > > 
> > > > > "properties": {
> > > > > 
> > > > > "item": {
> > > > > 
> > > > > "type": "object",
> > > > > 
> > > > > "properties": {}
> > > > > 
> > > > > },
> > > > > 
> > > > > "keys": {
> > > > > 
> > > > > "type": "string"
> > > > > 
> > > > > },
> > > > > 
> > > > > "values": {
> > > > > 
> > > > > "type": "object",
> > > > > 
> > > > > "properties": {}
> > > > > 
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > ```
> > > > > 
> > > > > },
> > > > > 
> > > > > "aliases": {
> > > > > 
> > > > > ```
> > > > > "dfm032": {}
> > > > > 
> > > > > ```
> > > > > 
> > > > > }
> > > > > 
> > > > > }
> > > > > 
> > > > > 2)Index a document
> > > > > 
> > > > > { "index" : {"\_type":"document","\_id":"1"} }
> > > > > 
> > > > > {"id":1,"rank":0.0,"text":"One","fields":{}}  
> > > > > 3) Later use feels that he needs a new field with specific behavior so  
> > > > > trying to update the behavior
> > > > > 
> > > > > I want create this new field called "name" in fields not under document
> > > > > 
> > > > > {  
> > > > > "document": {  
> > > > > "properties": {  
> > > > > "name": {  
> > > > > "index": "analyzed",  
> > > > > "type": "string",  
> > > > > "fields": {  
> > > > > "name\_na": {  
> > > > > "index": "not\_analyzed",  
> > > > > "type": "string"  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > 1. After updating the mapping ,index a new document with name field
> > > > > 
> > > > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > > > 
> > > > > I don't know how to specify that new "name" field should be under  
> > > > > fields .
> > > > > 
> > > > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > > > 
> > > > > Can you help me to specify the new field "name" under fields of  
> > > > > document ?
> > > > > 
> > > > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
> > > > > 
> > > > > > I think you are looking after templates.
> > > > > > 
> > > > > > David
> > > > > > 
> > > > > > Le 4 févr. 2015 à 06:51, bvnrwork [budda...@gmail.com](mailto:budda...@gmail.com) a écrit :
> > > > > > 
> > > > > > In other words additional fields are stored as  
> > > > > > {  
> > > > > > {  
> > > > > > Key:"field1"  
> > > > > > Value:"value1"  
> > > > > > }  
> > > > > > {  
> > > > > > Key:"field2"  
> > > > > > Value:"value2"  
> > > > > > }
> > > > > > 
> > > > > > }
> > > > > > 
> > > > > > field1 is created after initial field mapping, now how do I define  
> > > > > > field1 as not analyzed when it is created or do I need to change document  
> > > > > > structure
> > > > > > 
> > > > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
> > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > We have Document structure like this
> > > > > > > 
> > > > > > > Document  
> > > > > > > {  
> > > > > > > Key1:Value1  
> > > > > > > Key2:Value2  
> > > > > > > Key3:Value3,  
> > > > > > > Key4:Valu4  
> > > > > > > List\<key,Value\> AdditionalFields;  
> > > > > > > }
> > > > > > > 
> > > > > > > Additional fields are the dynamic fields(they can grow or sink) and  
> > > > > > > these fields need to obey certain behavior like analyzed /not analyzed or  
> > > > > > > this sort of stuff when they created.
> > > > > > > 
> > > > > > > One thing I don't know /I don't understand is how we define  
> > > > > > > behavior on keys (Fields /field names) from Additional fields ?
> > > > > > > 
> > > > > > > For below example document :
> > > > > > > 
> > > > > > > Document  
> > > > > > > {  
> > > > > > > Key1:Value1,  
> > > > > > > Key2:Value2  
> > > > > > > AdditionalFields  
> > > > > > > {  
> > > > > > > Key3:Value3  
> > > > > > > }
> > > > > > > 
> > > > > > > If I define Key3 as not analyzed in the index definition then  
> > > > > > > whether Value3 is not going to analyzed
> > > > > > > 
> > > > > > > Or Is there a way to do this ?
> > > > > > > 
> > > > > > > Regards,  
> > > > > > > Nagaraju
> > > > > > > 
> > > > > > > --  
> > > > > > > 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/3921832e-47e5-4565-abed-d57b6aea2aaf%  
> > > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > \<Unknow\_SizeDocs.png\>
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in the  
> > > > > > Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, 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/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr)  
> > [https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 4, 2015, 8:22pm UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/13 "2015-03-04T20:22:55Z")

</div>

How can we execute it?  
Please look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help/) [http://www.elasticsearch.org/help/](http://www.elasticsearch.org/help/)  
For example, this is a CURL recreation: [Test case for multifield fields · GitHub](https://gist.github.com/dadoonet/2965777#file-test-sh) [https://gist.github.com/dadoonet/2965777#file-test-sh](https://gist.github.com/dadoonet/2965777#file-test-sh)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 4 mars 2015 à 21:04, buddarapu nagaraju [budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) a écrit :
> 
> Here is my example :
> 
> 1. Index creation request
> 
> {
> 
> "settings": {
> 
> ```
> "index": {
> 
> "number_of_shards": 1,
> 
> "number_of_replicas": 0
> 
> }
> 
> ```
> 
> },
> 
> "mappings": {
> 
> ```
> "document": {
> 
> "dynamic": "strict",
> 
> "properties": {
> 
> "id": {
> 
> "type": "integer"
> 
> },
> 
> "rank": {
> 
> "type": "float"
> 
> },
> 
> "title": {
> 
> "type": "string"
> 
> },
> 
> "text": {
> 
> "type": "string"
> 
> },
> 
> "path": {
> 
> "type": "string"
> 
> },
> 
> "
> 
> "fields": {
> 
> "type": "object",
> 
> "properties": {
> 
> "item": {
> 
> "type": "object",
> 
> "properties": {}
> 
> },
> 
> "keys": {
> 
> "type": "string"
> 
> },
> 
> "values": {
> 
> "type": "object",
> 
> "properties": {}
> 
> }
> 
> }
> 
> }
> 
> }
> 
> }
> 
> ```
> 
> },
> 
> "aliases": {
> 
> ```
> "dfm032": {}
> 
> ```
> 
> }
> 
> }
> 
> 2)Index a document
> 
> { "index" : {"\_type":"document","\_id":"1"} }
> 
> {"id":1,"rank":0.0,"text":"One","fields":{}}
> 
> 1. Later use feels that he needs a new field with specific behavior so trying to update the behavior
> 
> I want create this new field called "name" in fields not under document
> 
> {  
> "document": {  
> "properties": {  
> "name": {  
> "index": "analyzed",  
> "type": "string",  
> "fields": {  
> "name\_na": {  
> "index": "not\_analyzed",  
> "type": "string"  
> }  
> }  
> }  
> }  
> }  
> }
> 
> 1. After updating the mapping ,index a new document with name field
> 
> { "index" : {"\_type":"document","\_id":"2"} }  
> {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> 
> I don't know how to specify that new "name" field should be under fields .
> 
> Due to this 4th step fails as a enabled strict dynamic mapping
> 
> Can you help me to specify the new field "name" under fields of document ?
> 
> Regards  
> Nagaraju  
> 908 517 6981
> 
> On Wed, Mar 4, 2015 at 1:29 PM, David Pilato \<[david@pilato.fr](mailto:david@pilato.fr) [mailto:david@pilato.fr](mailto:david@pilato.fr)\> wrote:  
> Where is your script?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 mars 2015 à 19:22, buddarapu nagaraju \<[budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) [mailto:budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)\> a écrit :
> 
> > Hello David ,
> > 
> > I want to add the field mapping after ingestion is done and have specific document structure Document{ Id, fields{key,value}
> > 
> > I could able to add field mapping under document using the script but could not under fields
> > 
> > so how do I specify "fields " path for field mapping when new fields added
> > 
> > Can you look at my script
> > 
> > Regards  
> > Nagaraju  
> > 908 517 6981 tel:908%20517%206981  
> > On Wed, Mar 4, 2015 at 1:16 PM, David Pilato \<[david@pilato.fr](mailto:david@pilato.fr) [mailto:david@pilato.fr](mailto:david@pilato.fr)\> wrote:  
> > Could you GIST a full script?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 mars 2015 à 19:05, buddarapu nagaraju \<[budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) [mailto:budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)\> a écrit :
> > 
> > > hi ,
> > > 
> > > Please let me know if some one has any ideas
> > > 
> > > Regards  
> > > Nagaraju  
> > > 908 517 6981 tel:908%20517%206981  
> > > On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju \<[budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) [mailto:budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)\> wrote:  
> > > Any one has any ideas 🙂
> > > 
> > > Regards  
> > > Nagaraju  
> > > 908 517 6981 tel:908%20517%206981
> > > 
> > > On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork \<[budda08nitt@gmail.com](mailto:budda08nitt@gmail.com) [mailto:budda08nitt@gmail.com](mailto:budda08nitt@gmail.com)\> wrote:  
> > > Hello David ,
> > > 
> > > Any quick help ? please
> > > 
> > > On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:  
> > > Here is my example :
> > > 
> > > 1. Index creation request
> > > 
> > > {
> > > 
> > > "settings": {
> > > 
> > > ```
> > > "index": {
> > > 
> > > "number_of_shards": 1,
> > > 
> > > "number_of_replicas": 0
> > > 
> > > }
> > > 
> > > ```
> > > 
> > > },
> > > 
> > > "mappings": {
> > > 
> > > ```
> > > "document": {
> > > 
> > > "dynamic": "strict",
> > > 
> > > "properties": {
> > > 
> > > "id": {
> > > 
> > > "type": "integer"
> > > 
> > > },
> > > 
> > > "rank": {
> > > 
> > > "type": "float"
> > > 
> > > },
> > > 
> > > "title": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "text": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "path": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "
> > > 
> > > "fields": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {
> > > 
> > > "item": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {}
> > > 
> > > },
> > > 
> > > "keys": {
> > > 
> > > "type": "string"
> > > 
> > > },
> > > 
> > > "values": {
> > > 
> > > "type": "object",
> > > 
> > > "properties": {}
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > }
> > > 
> > > ```
> > > 
> > > },
> > > 
> > > "aliases": {
> > > 
> > > ```
> > > "dfm032": {}
> > > 
> > > ```
> > > 
> > > }
> > > 
> > > }
> > > 
> > > 2)Index a document
> > > 
> > > { "index" : {"\_type":"document","\_id":"1"} }
> > > 
> > > {"id":1,"rank":0.0,"text":"One","fields":{}}
> > > 
> > > 1. Later use feels that he needs a new field with specific behavior so trying to update the behavior
> > > 
> > > I want create this new field called "name" in fields not under document
> > > 
> > > {  
> > > "document": {  
> > > "properties": {  
> > > "name": {  
> > > "index": "analyzed",  
> > > "type": "string",  
> > > "fields": {  
> > > "name\_na": {  
> > > "index": "not\_analyzed",  
> > > "type": "string"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > 1. After updating the mapping ,index a new document with name field
> > > 
> > > { "index" : {"\_type":"document","\_id":"2"} }  
> > > {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
> > > 
> > > I don't know how to specify that new "name" field should be under fields .
> > > 
> > > Due to this 4th step fails as a enabled strict dynamic mapping
> > > 
> > > Can you help me to specify the new field "name" under fields of document ?
> > > 
> > > On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:  
> > > I think you are looking after templates.
> > > 
> > > David
> > > 
> > > Le 4 févr. 2015 à 06:51, bvnrwork \<[budda...@gmail.com](mailto:budda...@gmail.com) \<\>\> a écrit :
> > > 
> > > > In other words additional fields are stored as  
> > > > {  
> > > > {  
> > > > Key:"field1"  
> > > > Value:"value1"  
> > > > }  
> > > > {  
> > > > Key:"field2"  
> > > > Value:"value2"  
> > > > }
> > > > 
> > > > }
> > > > 
> > > > field1 is created after initial field mapping, now how do I define field1 as not analyzed when it is created or do I need to change document structure
> > > > 
> > > > On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:  
> > > > Hi,
> > > > 
> > > > We have Document structure like this
> > > > 
> > > > Document  
> > > > {  
> > > > Key1:Value1  
> > > > Key2:Value2  
> > > > Key3:Value3,  
> > > > Key4:Valu4  
> > > > List\<key,Value\> AdditionalFields;  
> > > > }
> > > > 
> > > > Additional fields are the dynamic fields(they can grow or sink) and these fields need to obey certain behavior like analyzed /not analyzed or this sort of stuff when they created.
> > > > 
> > > > One thing I don't know /I don't understand is how we define behavior on keys (Fields /field names) from Additional fields ?
> > > > 
> > > > For below example document :
> > > > 
> > > > Document  
> > > > {  
> > > > Key1:Value1,  
> > > > Key2:Value2  
> > > > AdditionalFields  
> > > > {  
> > > > Key3:Value3  
> > > > }
> > > > 
> > > > If I define Key3 as not analyzed in the index definition then whether Value3 is not going to analyzed
> > > > 
> > > > Or Is there a way to do this ?
> > > > 
> > > > Regards,  
> > > > Nagaraju
> > > > 
> > > > --  
> > > > 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/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> > > > \<Unknow\_SizeDocs.png\>
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe) [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com) [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe) [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr) [https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B4CDA5B9-31E3-4044-899A-688426357F0F%40pilato.fr?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com) [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka\_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXLc4m75ktzyKrkr794Y4ka_nK0rGX7UovNUzKOUQ219Jw%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe) [https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe](https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr) [https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1CDA334A-7DFD-49B9-A02F-60E8DA0D0A2B%40pilato.fr?utm_medium=email&utm_source=footer).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com) [https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJYRFyxkb1jL8qUg5Kj%3Dx%3DeuML3s4pofTRG2Wj5pU29zw%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/005B8C4E-CDBB-49F7-80FD-960A08908A0E%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/005B8C4E-CDBB-49F7-80FD-960A08908A0E%40pilato.fr).  
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:28am UTC](https://discuss.elastic.co/t/urgent-adding-fields-mapping-for-nested-document-property/21968/14 "2017-07-06T00:28:30Z")

</div>


