{
"query": {
"bool": {
"must": [
{
"term": {
"rtype.keyword": "020200"
}
}
]
}
},
"size": 0,
"aggs": {
"app": {
"terms": {
"script": "doc['contact_account_type.keyword'].value +','+doc['friend_account.keyword'].value",
"size": 100000
}
}
}
}
{
"query": {
"bool": {
"must": [
{
"term": {
"rtype.keyword": "020200"
}
}
]
}
},
"size": 0,
"aggs": {
"account": {
"terms": {
"script": "doc['contact_account_type.keyword'].value +','+doc['fr