Mapping question

I am trying to change the mapping but I think I am not doing it right.
Documents are not clear either:

My document looks like this:

{"key":"87aef147-3560-4859-a2
64-fd7a9522002f","entityType":"Preferrence","keyValueIndex.dbSystemTime":"2014-12-05
17:38:04","keyValueIndex.indexTime":"2014-12-09
15:05:34","keyValueIndex.bucketNo":"0","keyValueIndex.gameNam
e":"korra","keyValueIndex.entityType":"Preferrence","keyValueIndex.systemT
imestamp":"1417819084000"}

And this is my mapping request that errors out. Not sure what's wrong here.

[ec2-user@ip-10-21-251-176 ~]$ curl -XPUT '
http://localhost:9200/test/_mapping/test' -d '

{
"test" : {
"properties" : {
{ "indexTime": {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"}
}
}
}
}
}
'
{"error":"RemoteTransportException[[Jonathan "John"
Garrett][inet[/10.21.251.174:9300]][indices:admin/mapping/put]]; nested:
ElasticsearchParseException[Failed to parse content to map]; nested:
JsonParseException[Unexpected character ('{' (code 123)): was expecting
either valid name character (for unquoted name) or double-quote (for
quoted) to start field name\n at [Source: UNKNOWN; line: 5, column: 6]];
","status":400}

--
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/CAOT3TWqJhzynwHaz0gJJWqas7DAZ2V%2Bv8pjco%3DDibMZygwJmOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Looks like you have an extra opening brace under properties.

On Tue, Dec 9, 2014 at 1:36 PM, Mohit Anchlia mohitanchlia@gmail.com
wrote:

I am trying to change the mapping but I think I am not doing it right.
Documents are not clear either:

My document looks like this:

{"key":"87aef147-3560-4859-a2
64-fd7a9522002f","entityType":"Preferrence","keyValueIndex.dbSystemTime":"2014-12-05
17:38:04","keyValueIndex.indexTime":"2014-12-09
15:05:34","keyValueIndex.bucketNo":"0","keyValueIndex.gameNam
e":"korra","keyValueIndex.entityType":"Preferrence","keyValueIndex.systemT
imestamp":"1417819084000"}

And this is my mapping request that errors out. Not sure what's wrong here.

[ec2-user@ip-10-21-251-176 ~]$ curl -XPUT '
http://localhost:9200/test/_mapping/test' -d '

{
"test" : {
"properties" : {
{ "indexTime": {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"}
}
}
}
}
}
'
{"error":"RemoteTransportException[[Jonathan "John"
Garrett][inet[/10.21.251.174:9300]][indices:admin/mapping/put]]; nested:
ElasticsearchParseException[Failed to parse content to map]; nested:
JsonParseException[Unexpected character ('{' (code 123)): was expecting
either valid name character (for unquoted name) or double-quote (for
quoted) to start field name\n at [Source: UNKNOWN; line: 5, column: 6]];
","status":400}

--
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/CAOT3TWqJhzynwHaz0gJJWqas7DAZ2V%2Bv8pjco%3DDibMZygwJmOw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAOT3TWqJhzynwHaz0gJJWqas7DAZ2V%2Bv8pjco%3DDibMZygwJmOw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAA0DmXbR9jdZhSMREv48DxuhipWcOMfP0T8X%3DU_HbTH%3Dr%3DpQfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.