Mapping nested type

In the below url they have explained nested types but how to specify type
to nested properties

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html

Example given

{
"obj1" : [
{
"name" : "blue",
"count" : 4
},
{
"name" : "green",
"count" : 6
}
]
}

Mapping given

{
"type1" : {
"properties" : {
"obj1" : {
"type" : "nested"
}
}
}
}

We say type is "nested" But how to map name to string and count to int ??

--
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/74530e0c-a651-4145-9119-db4b33aeae7b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

found the answer in

by using properties

On Wednesday, 27 November 2013 15:22:44 UTC+5:30, paul wrote:

In the below url they have explained nested types but how to specify type
to nested properties

Elasticsearch Platform — Find real-time answers at scale | Elastic

Example given

{
"obj1" : [
{
"name" : "blue",
"count" : 4
},
{
"name" : "green",
"count" : 6
}
]
}

Mapping given

{
"type1" : {
"properties" : {
"obj1" : {
"type" : "nested"
}
}
}
}

We say type is "nested" But how to map name to string and count to int ??

--
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/e18c492a-cae3-46a3-b2b0-d66acfb5cb30%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.