def build_search_kwargs(self, *args, **kwargs): direct = kwargs.pop("direct", None) search_kwargs = super(ElasticsearchSearchBackend, self).build_search_kwargs(*args, **kwargs) return merge_dictionaries(search_kwargs, direct)
def build_search_kwargs(self, *args, **kwargs): direct = kwargs.pop('direct', None) search_kwargs = super(ElasticsearchSearchBackend, self).build_search_kwargs(*args, **kwargs) return merge_dictionaries(search_kwargs, direct)
def direct(self, **kwargs): """Adds "direct" instructions for ElasticSearch.""" self._direct = merge_dictionaries(self._direct, kwargs)