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

Method get_backend

haystack/indexes.py:286–294  ·  view source on GitHub ↗
(self, using=None)

Source from the content-addressed store, hash-verified

284 return self.get_backend(using)
285
286 def get_backend(self, using=None):
287 if using is None:
288 try:
289 using = connection_router.for_write(index=self)[0]
290 except IndexError:
291 # There's no backend to handle it. Bomb out.
292 return None
293
294 return connections[using].get_backend()
295
296 def update(self, using=None):
297 """

Callers 15

_get_backendMethod · 0.95
updateMethod · 0.95
update_objectMethod · 0.95
remove_objectMethod · 0.95
clearMethod · 0.95
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
test_runMethod · 0.45
test_log_queryMethod · 0.45
setUpMethod · 0.45

Calls 1

for_writeMethod · 0.45

Tested by 15

setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
test_runMethod · 0.36
test_log_queryMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36