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)
示例#2
0
 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)
示例#4
0
 def direct(self, **kwargs):
     """Adds "direct" instructions for ElasticSearch."""
     self._direct = merge_dictionaries(self._direct, kwargs)