How can I create the following Parent-Child Mapping using Java API:
PUT karaf-2016.03.28
{
"mappings": {
"karaf_event": {
"properties": {
"HRC_ROUTE_ID": {
"type": "string",
"index": "not_analyzed"
},
"@timestamp ": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
}
}
},
"karaf_event_headers": {
"_parent": {
"type": "karaf_event"
},
"properties": {
"HRC_HEADER_NAME": {
"type": "string",
"index": "not_analyzed"
},
"HRC_HEADER_VALUE": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
Please help with this issue.
paulavijit:
How can I create the following Parent-Child Mapping using Java API:
PUT karaf-2016.03.28
{
"mappings": {
"karaf_event": {
"properties": {
"HRC_ROUTE_ID": {
"type": "string",
"index": "not_analyzed"
},
"@timestamp ": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
}
}
},
"karaf_event_headers": {
"_parent": {
"type": "karaf_event"
},
"properties": {
"HRC_HEADER_NAME": {
"type": "string",
"index": "not_analyzed"
},
"HRC_HEADER_VALUE": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
Is this something possible in ES 2.2???
paulavijit:
How can I create the following Parent-Child Mapping using Java API:
PUT karaf-2016.03.28
{
"mappings": {
"karaf_event": {
"properties": {
"HRC_ROUTE_ID": {
"type": "string",
"index": "not_analyzed"
},
"@timestamp ": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
}
}
},
"karaf_event_headers": {
"_parent": {
"type": "karaf_event"
},
"properties": {
"HRC_HEADER_NAME": {
"type": "string",
"index": "not_analyzed"
},
"HRC_HEADER_VALUE": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}