def delete_by_query(self, query, params=None):
        if params is None:
            params = {}

        params['query'] = query
        params['hitsPerPage'] = 1000
        params['attributesToRetrieve'] = ['objectID']
        params['attributesToSnippet'] = []
        params['attributesToHighlight'] = []
        params['distinct'] = False

        return self.delete_objects(
                    obj['objectID'] for obj in self.browse_all(params))
Return the top individuals, by amount contributed to Republicans.
dataset/ETHPy150Open algolia/algoliasearch-client-python/algoliasearch/index.py/Index.delete_by_query--crossover with--dataset/ETHPy150Open sunlightlabs/python-transparencydata/influenceexplorer.py/Entities.top_n_indiv_republican_donors