paul1
(paul)
November 27, 2013, 9:52am
1
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 .
paul1
(paul)
November 27, 2013, 10:44am
2
found the answer in
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
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 .