{
"by_cat": {
"path": "/category",
"sumOtherDocCount": 0,
"children": [
{
"docCount": 2,
"path": "/category/books",
"sumOtherDocCount": 0,
"children": [
{ "docCount": 1, "path": "/category/books/fiction", "sumOtherDocCount": 0 },
{ "docCount": 1, "path": "/category/books/nonfiction", "sumOtherDocCount": 0 }
]
},
{
"docCount": 2,
"path": "/category/electronics",
"sumOtherDocCount": 0,
"children": [
{ "docCount": 1, "path": "/category/electronics/laptops", "sumOtherDocCount": 0 },
{ "docCount": 1, "path": "/category/electronics/phones", "sumOtherDocCount": 0 }
]
}
]
}
}