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

Method __and__

haystack/query.py:98–103  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

96 return self._manual_iter()
97
98 def __and__(self, other):
99 if isinstance(other, EmptySearchQuerySet):
100 return other._clone()
101 combined = self._clone()
102 combined.query.combine(other.query, SQ.AND)
103 return combined
104
105 def __or__(self, other):
106 combined = self._clone()

Callers

nothing calls this directly

Calls 2

_cloneMethod · 0.95
combineMethod · 0.80

Tested by

no test coverage detected