Filter on empty terms

Hello,

I'm building an app with Dash, i created a checklist, that returns a list of terms. I use that list to filter on my fields. But when there is no filter i don't know how to inform my query to not filter on anything.

here is my query i'm using python:

all_dep
all_domaineA
all_typeA

Are the three list i obtain from my dash app. They can be either filled [value,value] or empty [ ]. I'm then wondering if there is any value i could replace my object by, to not filter any value.

> res = es.search(
>     index="cluster_all", 
>     size=10000, 
>     body=   {   "_source": ['geoloc',"societe"],
>                 "size" : 10000,
>                 "query": {
>                     "bool": {
>                         "must": {
>                                 "match_all": {}
>                               },
>                         "filter" : [
>                                       { "terms" : { "num_dep" : all_dep}},
>                                       { "terms" : { "typeA"  : all_typeA }},
>                                       { "terms" : { "domaineA"  : all_domaineA }}
>                                     ]
>                         }
>                     }
>                 }
>     )