(export_instance, filters, are_filters_es_formatted=False)
return query
:param filters: either a list of ExportFilter objects, or a list of json serializable dicts
    :param are_filters_es_formatted: used to determine if filters are already json serializable dicts
    :return:
:param filters: either a list of ExportFilter objects, or a list of json serializable dicts
    :param are_filters_es_formatted: used to determine if filters are already json serializable dicts
    :return:
: param filters : either a list of ExportFilter objects or a list of json serializable dicts : param are_filters_es_formatted : used to determine if filters are already json serializable dicts : return :
def get_export_query(export_instance, filters, are_filters_es_formatted=False):
    """
    :param filters: either a list of ExportFilter objects, or a list of json serializable dicts
    :param are_filters_es_formatted: used to determine if filters are already json serializable dicts
    :return:
    """
    query = _get_base_query(export_instance)
    for f in filters:
        es_filter = f if are_filters_es_formatted else f.to_es_filter()
        query = query.filter(es_filter)
    return query
def get_export_query ( export_instance , filters , are_filters_es_formatted = False ) : query = _get_base_query ( export_instance ) for f in filters : es_filter = f if are_filters_es_formatted else f . to_es_filter ( ) query = query . filter ( es_filter ) return query