MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / EmptyResults

Class EmptyResults

haystack/backends/__init__.py:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53class EmptyResults:
54 hits = 0
55 docs = []
56
57 def __len__(self):
58 return 0
59
60 def __getitem__(self, k):
61 if isinstance(k, slice):
62 return []
63 else:
64 raise IndexError("It's not here.")
65
66
67class BaseSearchBackend:

Callers 3

searchMethod · 0.90
more_like_thisMethod · 0.90
more_like_thisMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…