# Help with a mapping

**URL:** <https://discuss.elastic.co/t/help-with-a-mapping/14919>\
**Category:** Elasticsearch\
**Created:** [December 17, 2013, 7:53pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919 "2013-12-17T19:53:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoff1](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Geoff1](https://discuss.elastic.co/u/Geoff1)\
**Post date:** [December 17, 2013, 7:53pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/1 "2013-12-17T19:53:06Z")

</div>

Hi,

I am pretty new to elasticsearch, and I seem to be having an issue with a  
JSON record that I am trying to add to elasticsearch but I keep getting a  
mapping error:

org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
[response]

but the true cause looks to be:

Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown  
property [NameSet].

Could someone help me with how I would setup a mapping for this? Here is  
an example of the JSON.

"response": {  
"NameSet": {  
"items": [  
{  
"name\_data": "some text",  
"currentState": {  
"code": 1,  
"name": "name1"  
},  
"previousState": {  
"code": 0,  
"name": "name2"  
}  
}  
]  
}  
}

Any help would be greatly appreciated..

Thank you.

Geoff

--  
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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 17, 2013, 8:07pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/2 "2013-12-17T20:07:52Z")

</div>

Could you gist a curl recreation to understand what you are doing?

See [http://www.elasticsearch.org/help](http://www.elasticsearch.org/help)

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

Le 17 déc. 2013 à 20:53, Geoff Owen [geoffreyowen@gmail.com](mailto:geoffreyowen@gmail.com) a écrit :

Hi,

I am pretty new to elasticsearch, and I seem to be having an issue with a JSON record that I am trying to add to elasticsearch but I keep getting a mapping error:

org.elasticsearch.index.mapper.MapperParsingException: failed to parse [response]

but the true cause looks to be:

Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown property [NameSet].

Could someone help me with how I would setup a mapping for this? Here is an example of the JSON.

"response": {  
"NameSet": {  
"items": [  
{  
"name\_data": "some text",  
"currentState": {  
"code": 1,  
"name": "name1"  
},  
"previousState": {  
"code": 0,  
"name": "name2"  
}  
}  
]  
}  
}

Any help would be greatly appreciated..

Thank you.

## Geoff

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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3A4D4E8C-76D2-47C2-9DAC-67C2F9026EA0%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/3A4D4E8C-76D2-47C2-9DAC-67C2F9026EA0%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Geoff1](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Geoff1](https://discuss.elastic.co/u/Geoff1)\
**Post date:** [December 17, 2013, 8:26pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/3 "2013-12-17T20:26:37Z")

</div>

Sure thing David! Thank you for the link! Here is what I am trying to do,  
I have the full record as well as the mappings I am currently using.

[https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)

Thanks again,

Geoff

On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:

> Could you gist a curl recreation to understand what you are doing?
> 
> See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 17 déc. 2013 à 20:53, Geoff Owen \<[geoffr...@gmail.com](mailto:geoffr...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi,
> 
> I am pretty new to elasticsearch, and I seem to be having an issue with a  
> JSON record that I am trying to add to elasticsearch but I keep getting a  
> mapping error:
> 
> org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
> [response]
> 
> but the true cause looks to be:
> 
> Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
> unknown property [NameSet].
> 
> Could someone help me with how I would setup a mapping for this? Here is  
> an example of the JSON.
> 
> "response": {  
> "NameSet": {  
> "items": [  
> {  
> "name\_data": "some text",  
> "currentState": {  
> "code": 1,  
> "name": "name1"  
> },  
> "previousState": {  
> "code": 0,  
> "name": "name2"  
> }  
> }  
> ]  
> }  
> }
> 
> Any help would be greatly appreciated..
> 
> Thank you.
> 
> Geoff
> 
> --  
> 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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 17, 2013, 8:37pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/4 "2013-12-17T20:37:20Z")

</div>

I can't see how to reproduce your concern.

"logstash-\*" is the template and you add a document in french index.

You talked about a concern with response field or object but I don't see it in your sample doc.

Could you gist a full curl recreation? Something we just have to run using in a shell and which fails at the end.

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

Le 17 décembre 2013 at 21:26:41, Geoff Owen ([geoffreyowen@gmail.com](mailto:geoffreyowen@gmail.com)) a écrit:

Sure thing David! Thank you for the link! Here is what I am trying to do, I have the full record as well as the mappings I am currently using.

[https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)

Thanks again,

Geoff

On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:  
Could you gist a curl recreation to understand what you are doing?

See [http://www.elasticsearch.org/help](http://www.elasticsearch.org/help)

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

Le 17 déc. 2013 à 20:53, Geoff Owen [geoffr...@gmail.com](mailto:geoffr...@gmail.com) a écrit :

Hi,

I am pretty new to elasticsearch, and I seem to be having an issue with a JSON record that I am trying to add to elasticsearch but I keep getting a mapping error:

org.elasticsearch.index.mapper.MapperParsingException: failed to parse [response]

but the true cause looks to be:

Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown property [NameSet].

Could someone help me with how I would setup a mapping for this? Here is an example of the JSON.

"response": {  
"NameSet": {  
"items": [  
{  
"name\_data": "some text",  
"currentState": {  
"code": 1,  
"name": "name1"  
},  
"previousState": {  
"code": 0,  
"name": "name2"  
}  
}  
]  
}  
}

Any help would be greatly appreciated..

Thank you.

## Geoff

## 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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.52b0b600.6b8b4567.111%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.52b0b600.6b8b4567.111%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Geoff1](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Geoff1](https://discuss.elastic.co/u/Geoff1)\
**Post date:** [December 19, 2013, 8:21pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/5 "2013-12-19T20:21:36Z")

</div>

David,

Sorry for not making things more clear. I am really new to using  
elasticsearch directly. I updated the gist with what I think is a use  
case, as well as two records that if first succeed, and if second fail  
everytime. This may be a misunderstanding on my part as the records I am  
trying to put into elasticsearch are completely different lengths using the  
same index(?).

[https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)

Thanks again for your help and time.

Geoff

On Tuesday, December 17, 2013 2:37:20 PM UTC-6, David Pilato wrote:

> I can't see how to reproduce your concern.
> 
> "logstash-\*" is the template and you add a document in french index.
> 
> You talked about a concern with response field or object but I don't see  
> it in your sample doc.
> 
> Could you gist a full curl recreation? Something we just have to run using  
> in a shell and which fails at the end.
> 
> --  
> _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)
> 
> Le 17 décembre 2013 at 21:26:41, Geoff Owen ([geoffr...@gmail.com](mailto:geoffr...@gmail.com)\<javascript:\>)  
> a écrit:
> 
> Sure thing David! Thank you for the link! Here is what I am trying to  
> do, I have the full record as well as the mappings I am currently using.
> 
> [https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)
> 
> Thanks again,
> 
> Geoff
> 
> On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:
> 
> > Could you gist a curl recreation to understand what you are doing?
> > 
> > See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 17 déc. 2013 à 20:53, Geoff Owen [geoffr...@gmail.com](mailto:geoffr...@gmail.com) a écrit :
> > 
> > Hi,
> > 
> > I am pretty new to elasticsearch, and I seem to be having an issue with a  
> > JSON record that I am trying to add to elasticsearch but I keep getting a  
> > mapping error:
> > 
> > org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
> > [response]
> > 
> > but the true cause looks to be:
> > 
> > Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
> > unknown property [NameSet].
> > 
> > Could someone help me with how I would setup a mapping for this? Here is  
> > an example of the JSON.
> > 
> > "response": {  
> > "NameSet": {  
> > "items": [  
> > {  
> > "name\_data": "some text",  
> > "currentState": {  
> > "code": 1,  
> > "name": "name1"  
> > },  
> > "previousState": {  
> > "code": 0,  
> > "name": "name2"  
> > }  
> > }  
> > ]  
> > }  
> > }
> > 
> > Any help would be greatly appreciated..
> > 
> > Thank you.
> > 
> > ## Geoff
> > 
> > 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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 20, 2013, 10:29am UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/6 "2013-12-20T10:29:34Z")

</div>

This is not related to logstash template but to your documents.

responseElements is first and object

Then you try to insert a String:

"responseElements": ""

It could not work.

I created a gist here [https://gist.github.com/dadoonet/8052994](https://gist.github.com/dadoonet/8052994)

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

Le 19 décembre 2013 at 21:21:40, Geoff Owen ([geoffreyowen@gmail.com](mailto:geoffreyowen@gmail.com)) a écrit:

David,

Sorry for not making things more clear. I am really new to using elasticsearch directly. I updated the gist with what I think is a use case, as well as two records that if first succeed, and if second fail everytime. This may be a misunderstanding on my part as the records I am trying to put into elasticsearch are completely different lengths using the same index(?).

[https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)

Thanks again for your help and time.

Geoff

On Tuesday, December 17, 2013 2:37:20 PM UTC-6, David Pilato wrote:  
I can't see how to reproduce your concern.

"logstash-\*" is the template and you add a document in french index.

You talked about a concern with response field or object but I don't see it in your sample doc.

Could you gist a full curl recreation? Something we just have to run using in a shell and which fails at the end.

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

Le 17 décembre 2013 at 21:26:41, Geoff Owen ([geoffr...@gmail.com](mailto:geoffr...@gmail.com)) a écrit:

Sure thing David! Thank you for the link! Here is what I am trying to do, I have the full record as well as the mappings I am currently using.

[https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)

Thanks again,

Geoff

On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:  
Could you gist a curl recreation to understand what you are doing?

See [http://www.elasticsearch.org/help](http://www.elasticsearch.org/help)

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

Le 17 déc. 2013 à 20:53, Geoff Owen [geoffr...@gmail.com](mailto:geoffr...@gmail.com) a écrit :

Hi,

I am pretty new to elasticsearch, and I seem to be having an issue with a JSON record that I am trying to add to elasticsearch but I keep getting a mapping error:

org.elasticsearch.index.mapper.MapperParsingException: failed to parse [response]

but the true cause looks to be:

Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown property [NameSet].

Could someone help me with how I would setup a mapping for this? Here is an example of the JSON.

"response": {  
"NameSet": {  
"items": [  
{  
"name\_data": "some text",  
"currentState": {  
"code": 1,  
"name": "name1"  
},  
"previousState": {  
"code": 0,  
"name": "name2"  
}  
}  
]  
}  
}

Any help would be greatly appreciated..

Thank you.

## Geoff

## 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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.52b41c0e.4f4ef005.111%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.52b41c0e.4f4ef005.111%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Geoff1](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Geoff1](https://discuss.elastic.co/u/Geoff1)\
**Post date:** [December 20, 2013, 6:02pm UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/7 "2013-12-20T18:02:56Z")

</div>

Thank you very much David. The String that is sometimes there is of little  
value, so I am getting rid of that before the logs are picked up now.

Thank you so much! I really appreciate your help!

Geoff

On Friday, December 20, 2013 4:29:34 AM UTC-6, David Pilato wrote:

> This is not related to logstash template but to your documents.
> 
> responseElements is first and object
> 
> Then you try to insert a String:
> 
> "responseElements": ""
> 
> It could not work.
> 
> I created a gist here [fail-insert.sh · GitHub](https://gist.github.com/dadoonet/8052994)
> 
> --  
> _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)
> 
> Le 19 décembre 2013 at 21:21:40, Geoff Owen ([geoffr...@gmail.com](mailto:geoffr...@gmail.com)\<javascript:\>)  
> a écrit:
> 
> David,
> 
> Sorry for not making things more clear. I am really new to using  
> elasticsearch directly. I updated the gist with what I think is a use  
> case, as well as two records that if first succeed, and if second fail  
> everytime. This may be a misunderstanding on my part as the records I am  
> trying to put into elasticsearch are completely different lengths using the  
> same index(?).
> 
> [https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)
> 
> Thanks again for your help and time.
> 
> Geoff
> 
> On Tuesday, December 17, 2013 2:37:20 PM UTC-6, David Pilato wrote:
> 
> > I can't see how to reproduce your concern.
> > 
> > "logstash-\*" is the template and you add a document in french index.
> > 
> > You talked about a concern with response field or object but I don't see  
> > it in your sample doc.
> > 
> > Could you gist a full curl recreation? Something we just have to run  
> > using in a shell and which fails at the end.
> > 
> > ```
> > -- 
> > 
> > ```
> > 
> > _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)
> > 
> > Le 17 décembre 2013 at 21:26:41, Geoff Owen ([geoffr...@gmail.com](mailto:geoffr...@gmail.com)) a  
> > écrit:
> > 
> > Sure thing David! Thank you for the link! Here is what I am trying to  
> > do, I have the full record as well as the mappings I am currently using.
> > 
> > [https://gist.github.com/oweng/8011953](https://gist.github.com/oweng/8011953)
> > 
> > Thanks again,
> > 
> > Geoff
> > 
> > On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:
> > 
> > > Could you gist a curl recreation to understand what you are doing?
> > > 
> > > See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 17 déc. 2013 à 20:53, Geoff Owen [geoffr...@gmail.com](mailto:geoffr...@gmail.com) a écrit :
> > > 
> > > Hi,
> > > 
> > > I am pretty new to elasticsearch, and I seem to be having an issue with  
> > > a JSON record that I am trying to add to elasticsearch but I keep getting a  
> > > mapping error:
> > > 
> > > org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
> > > [response]
> > > 
> > > but the true cause looks to be:
> > > 
> > > Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
> > > unknown property [NameSet].
> > > 
> > > Could someone help me with how I would setup a mapping for this? Here  
> > > is an example of the JSON.
> > > 
> > > "response": {  
> > > "NameSet": {  
> > > "items": [  
> > > {  
> > > "name\_data": "some text",  
> > > "currentState": {  
> > > "code": 1,  
> > > "name": "name1"  
> > > },  
> > > "previousState": {  
> > > "code": 0,  
> > > "name": "name2"  
> > > }  
> > > }  
> > > ]  
> > > }  
> > > }
> > > 
> > > Any help would be greatly appreciated..
> > > 
> > > Thank you.
> > > 
> > > ## Geoff
> > > 
> > > 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/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbeb4f36-9b8a-44c4-a652-ba6b6ed08d9f%40googlegroups.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cca0153f-0124-4d69-bdea-372029f199ce%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/afe1d391-5b6f-4bbf-8542-60341dd283f4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/afe1d391-5b6f-4bbf-8542-60341dd283f4%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:59am UTC](https://discuss.elastic.co/t/help-with-a-mapping/14919/8 "2017-07-06T01:59:55Z")

</div>


