{
    "took": 3,
    "timed_out": false,
    "_shards": {
        "total": 1,
        "successful": 1,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": {
            "value": 4,
            "relation": "eq"
        },
        "max_score": null,
        "hits": []
    },
    "aggregations": {
        "facets": {
            "doc_count": 8,
            "codes": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": [
                    {
                        "key": "1",
                        "doc_count": 4,
                        "names": {
                            "doc_count_error_upper_bound": 0,
                            "sum_other_doc_count": 0,
                            "buckets": [
                                {
                                    "key": "color",
                                    "doc_count": 4
                                }
                            ]
                        },
                        "values": {
                            "doc_count": 6,
                            "codes": {
                                "doc_count_error_upper_bound": 0,
                                "sum_other_doc_count": 0,
                                "buckets": [
                                    {
                                        "key": "1",
                                        "doc_count": 3,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "Black",
                                                    "doc_count": 3
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "key": "2",
                                        "doc_count": 2,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "Red",
                                                    "doc_count": 2
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "key": "3",
                                        "doc_count": 1,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "Blue",
                                                    "doc_count": 1
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "key": "2",
                        "doc_count": 4,
                        "names": {
                            "doc_count_error_upper_bound": 0,
                            "sum_other_doc_count": 0,
                            "buckets": [
                                {
                                    "key": "capacity",
                                    "doc_count": 4
                                }
                            ]
                        },
                        "values": {
                            "doc_count": 6,
                            "codes": {
                                "doc_count_error_upper_bound": 0,
                                "sum_other_doc_count": 0,
                                "buckets": [
                                    {
                                        "key": "2",
                                        "doc_count": 3,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "256GB",
                                                    "doc_count": 3
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "key": "1",
                                        "doc_count": 2,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "128GB",
                                                    "doc_count": 2
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "key": "3",
                                        "doc_count": 1,
                                        "names": {
                                            "doc_count_error_upper_bound": 0,
                                            "sum_other_doc_count": 0,
                                            "buckets": [
                                                {
                                                    "key": "512GB",
                                                    "doc_count": 1
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        }
    }
}