Following is my query:
{
size: 0,
aggs:{
property:{
nested: {path: "dept"},
aggs: {
dept_name: {
terms: {
field: "dept.dept_name"
size: 10000
},
aggs: {
id: {
cardinality: {
field:"dept_dept_name.id"
}
}
}
}
}
}
}
I will get the output as::
"buckets":[
{
"key":"IT",
"doc_count":1212,
"id":{
"value":4}
}
]
But i want the out put as
"buckets":[
{
"key":"XXXXX",(Key_name shouldnt be displayed)
"doc_count":1212,
"id":{
"value":4}
}
]
I dont want to display the Key_just doc count and value because my key data is sensitive data.
Is there any way to hide the following data.
Thanks,