Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/watson/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def filter(self, queryset, search_text, ranking=True, backend_name=None):
def get_backend(backend_name=None):
"""Initializes and returns the search backend."""
global _backend_cache
# Try to use the cached backend.
if _backend_cache is not None:
# Try to use the cached backend if no backend is specified.
if _backend_cache is not None and not backend_name:
return _backend_cache
# Load the backend class.
if not backend_name:
Expand Down