Hi all,
A document looks like :
{
"name": "myname",
"type": "mytype",
"values": {
"priority": "mypriority",
"state": "`mystate"
}
}
My mapping :
{
"myindex": {
"mappings": {
"_doc": {
"properties": {
"name": {
"type": "text",
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
},
"type": {
"type": "text",
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
},
"values": {
"type": "nested",
"properties": {
"priority": {
"type": "text",
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
},
"state": {
"type": "text",
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
}
}
It's ok to do an adjacency matrix between type
and name
:
aggs: {
"myaggregation": {
"adjacency_matrix": {
"filters": {
"nameAgg": {
"terms": {
"name.raw": [
"myname"
]
}
},
"type_mytype": {
"terms": {
"type.raw": [
"mytype"
]
}
}
}
}
}
}
But impossible between values.priority.raw
and values.state.raw
, the bucket is empty...
Does someone have a solution?
Thank you!