MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / using

Method using

haystack/query.py:510–518  ·  view source on GitHub ↗

Allows switching which connection the ``SearchQuerySet`` uses to search in.

(self, connection_name)

Source from the content-addressed store, hash-verified

508 return clone.filter(reduce(operator.__and__, query_bits))
509
510 def using(self, connection_name):
511 """
512 Allows switching which connection the ``SearchQuerySet`` uses to
513 search in.
514 """
515 clone = self._clone()
516 clone.query = self.query.using(connection_name)
517 clone._using = connection_name
518 return clone
519
520 # Methods that do not return a SearchQuerySet.
521

Callers 6

test_handle_saveMethod · 0.95
test_handle_deleteMethod · 0.95
_determine_backendMethod · 0.45
setUpMethod · 0.45

Calls 1

_cloneMethod · 0.95

Tested by 5

test_handle_saveMethod · 0.76
test_handle_deleteMethod · 0.76
setUpMethod · 0.36