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

Method within

haystack/query.py:406–410  ·  view source on GitHub ↗

Spatial: Adds a bounding box search to the query.

(self, field, point_1, point_2)

Source from the content-addressed store, hash-verified

404 return clone
405
406 def within(self, field, point_1, point_2):
407 """Spatial: Adds a bounding box search to the query."""
408 clone = self._clone()
409 clone.query.add_within(field, point_1, point_2)
410 return clone
411
412 def dwithin(self, field, point, distance):
413 """Spatial: Adds a distance-based search to the query."""

Callers 5

test_withinMethod · 0.45
test_withinMethod · 0.45
test_distance_addedMethod · 0.45
test_complexMethod · 0.45

Calls 2

_cloneMethod · 0.95
add_withinMethod · 0.80

Tested by 5

test_withinMethod · 0.36
test_withinMethod · 0.36
test_distance_addedMethod · 0.36
test_complexMethod · 0.36