Help with a mapping

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.
To view this discussion on the web visit 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.

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

See http://www.elasticsearch.org/help

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

Le 17 déc. 2013 à 20:53, Geoff Owen 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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.

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

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

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

Le 17 déc. 2013 à 20:53, Geoff Owen <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 <javascript:>.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.

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
@dadoonet | @elasticsearchfr

Le 17 décembre 2013 at 21:26:41, Geoff Owen (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

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

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

Le 17 déc. 2013 à 20:53, Geoff Owen 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.
To view this discussion on the web visit 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.

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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.

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

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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 17 décembre 2013 at 21:26:41, Geoff Owen (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

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

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

Le 17 déc. 2013 à 20:53, Geoff Owen 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.
To view this discussion on the web visit
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.

--
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 <javascript:>.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.

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

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 19 décembre 2013 at 21:21:40, Geoff Owen (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

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
@dadoonet | @elasticsearchfr

Le 17 décembre 2013 at 21:26:41, Geoff Owen (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

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

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

Le 17 déc. 2013 à 20:53, Geoff Owen 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.
To view this discussion on the web visit 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.

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.
To view this discussion on the web visit 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.

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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit 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.

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

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 19 décembre 2013 at 21:21:40, Geoff Owen (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

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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 17 décembre 2013 at 21:26:41, Geoff Owen (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

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

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

Le 17 déc. 2013 à 20:53, Geoff Owen 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit
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.

--
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 <javascript:>.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.