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

Method set_limits

haystack/backends/__init__.py:862–868  ·  view source on GitHub ↗

Restricts the query by altering either the start, end or both offsets.

(self, low=None, high=None)

Source from the content-addressed store, hash-verified

860 self.models.add(model)
861
862 def set_limits(self, low=None, high=None):
863 """Restricts the query by altering either the start, end or both offsets."""
864 if low is not None:
865 self.start_offset = int(low)
866
867 if high is not None:
868 self.end_offset = int(high)
869
870 def clear_limits(self):
871 """Clears any existing limits."""

Callers 3

_fill_cacheMethod · 0.80
test_set_limitsMethod · 0.80
test_clear_limitsMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_set_limitsMethod · 0.64
test_clear_limitsMethod · 0.64