def METHOD_NAME(self):
    searches = [self._search]
    for index_searches in self._index_searches.values():
        searches += [index_search for index_search in index_searches]
    for search in searches:
        agg = search.aggs.bucket(
            'genes', 'terms', field='mainTranscript_gene_id', size=MAX_COMPOUND_HET_GENES+1
        )
        if self._no_sample_filters or self._any_affected_sample_filters:
            for key in HAS_ALT_FIELD_KEYS:
                agg.bucket(key, 'terms', field=key, size=10000)
        else:
            agg.metric(
                'vars_by_gene', 'top_hits', size=100, _source='none'
            )