Hi,
I am unsuccessful with creation parent-child relation of 2 documents (2-nd document: counter).
What I am doing wrong ?
Thanks!
Following the documents example:
aggregation_meta
"aggregation_meta_14e6a0506be-15_1_2_1450195320000":{
“cpm”: 1.5,
“event_type”: 1,
“saved”: false,
“created_at_millis”: 1450196161819,
“created_at”: “2015-12-15T16:16:01.819Z”,
“tag_id”: “14e6a0506be-15”,
“aggregation”: 2,
“type”: “aggregation_meta”,
“timescale”: 1450195320000,
“counter_id”: “14e6a0506be-15_1_2_1450195320000”,
“status”: 0
}
aggrtegation_counter
"aggrtegation_counter_14e6a0506be-15_1_2_1450195320000":1
Following the config:
couchbase.wrapCounters: true
couchbase.keyFilter: org.elasticsearch.transport.couchbase.capi.RegexKeyFilter
couchbase.keyFilter.type: include
couchbase.keyFilter.keyFiltersRegex.aggregation_counter: ^aggregation_counter_[1-9].$
couchbase.keyFilter.keyFiltersRegex.aggregation_meta: ^aggregation_meta_[1-9].$
couchbase.parentSelector.documentTypeParentFields.aggregation_meta: doc.counter_id
couchbase.parentSelector.documentTypesParentRegex.aggregation_counter: ^aggregation_counter_(?<parent>.+)