Understanding filters cache for filters nested inside should clause of parent boolean query

{
    "from": 0,
    "size": 2,
    "timeout": "10ms",
    "query": {
        "bool": {
            "should": [
                {
                    "bool": {
                        "filter": [
                            {
                                "term": {
                                    "mp": {
                                        "value": "F"
                                    }
                                }
                            },
                            {
                                "term": {
                                    "fc": {
                                        "value": 1
                                    }
                                }
                            },
                            {
                                "terms": {
                                    "ft": [
                                        "rating"
                                    ]
                                }
                            },
                            {
                                "terms": {
                                    "sp": [
                                         "j9e/abm/lbz/",
                                         "6bo/tia/ffn/0kj/"
                                    ]
                                    }
                                
                            },
                            {
                                "terms": {
                                    "ect": [
                                        "tr"
                                    ]
                                }
                            },
                            {
                                "term": {
                                    "ia": {
                                        "value": true
                                    }
                                }
                            }
                        ],
                        "must_not": [
                            {
                                "exists": {
                                    "field": "al"
                                }
                            },
                            {
                                "exists": {
                                    "field": "bu"
                                }
                            }
                        ],
                        "_name": "name"
                    }
                }
                ,{
                "bool": {
            "filter": [
                {
                    "terms": {
                        "fy": [
                            "flip"
                        ]
                    }
                },
                {
                    "terms": {
                        "fl": [
                            "fulfilled_by"
                        ]
                    }
                },
                {
                    "term": {
                        "ft": {
                            "value": 1
                        }
                    }
                },
                {
                    "term": {
                        "sp": {
                            "value": "clo/mz5/jbj/"
                        }
                    }
                },
                {
                    "term": {
                        "mp": {
                            "value": "F"
                        }
                    }
                },
                {
                    "terms": {
                        "ect": [
                            "fa"
                        ]
                    }
                },
                {
                    "term": {
                        "ia": {
                            "value": true
                        }
                    }
                }
            ],
            "must_not": [
                {
                    "exists": {
                        "field": "bu"
                    }
                },
                {
                    "exists": {
                        "field": "al"
                    }
                }
            ],
            "adjust_pure_negative": true,
            "_name": "name"
        }
                }
            ]
            }
        }
    
}

This is a boolean query with two nesting subqueries. The two nested subqueries contain filters. Will these filters leverage filter cache?
I read that only the filter clause of a boolean query is cached. They are inside one boolean query with a should clause. Thats why need some explanation regarding it

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.