Hi Masaru,

Thank You. 

It did not work. Because we were using 1.3.x version of elasticsearch and 
there is bug for solaris for mapping nested object.

I upgraded ES and the mapping is good now.

Thanks,
Krishna Raj

On Tuesday, January 6, 2015 at 2:00:01 PM UTC-8, Krishna Raj wrote:
>
> Hi,
>
> I am trying to create an index with mapping which contains nested object. 
> I also tried to update the mapping of an empty created index with the same 
> below mapping which contains nested object.
>
> But I am getting MapperParsingException error all time. My cluster goes 
> down and recoveres automatically. I am banging my head on this for last 1 
> week with no help.
>
> Any help is greatly appreciated.
>
> Reference: 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html
>
> *My Sample JSON: *
>
> {
>     "timeStamp": "2014-12-31T19:15:45.000+0000",
>     "metrics": [
>         {
>             "name": "viewList",
>             "ave": 10.5
>         },
>         {
>             "name": "checkout",
>             "ave": 20.5
>         },
>         {
>             "name": "login",
>             "ave": 30.5
>         },
>         {
>             "name": "logout",
>             "ave": 40.5
>         }
>     ]
> }
>
>
> *Mapping I am trying:*
>
> curl -XPUT 'http://myhost:9201/testagg/testagg/_mapping' -d '{
>     "testagg": {
>         "properties": {
>             "timeStamp": {
>                 "format": "dateOptionalTime",
>                 "type": "date"
>             },
>             "properties": {
>                 "metrics": {
>                     "type": "nested",
>                     "properties": {
>                         "name": {
>                             "type": "string"
>                         },
>                         "ave": {
>                             "type": "double"
>                         }
>                     }
>                 }
>             }
>         }
>     }
> }'
>
>
> Thanks,
> Krishna Raj
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8503d1a7-b951-4550-9da5-a21a519a59f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to