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

Method facet

haystack/query.py:400–404  ·  view source on GitHub ↗

Adds faceting to a query for the provided field.

(self, field, **options)

Source from the content-addressed store, hash-verified

398 return clone
399
400 def facet(self, field, **options):
401 """Adds faceting to a query for the provided field."""
402 clone = self._clone()
403 clone.query.add_field_facet(field, **options)
404 return clone
405
406 def within(self, field, point_1, point_2):
407 """Spatial: Adds a bounding box search to the query."""

Callers 13

get_querysetMethod · 0.45
test_facetsMethod · 0.45
test_facetsMethod · 0.45
test_facetMethod · 0.45
test_multiple_narrowMethod · 0.45
test_narrowMethod · 0.45
test_facetMethod · 0.45
test_multiple_narrowMethod · 0.45
test_narrowMethod · 0.45
urls.pyFile · 0.45
test_facetMethod · 0.45
test_multiple_narrowMethod · 0.45

Calls 2

_cloneMethod · 0.95
add_field_facetMethod · 0.45

Tested by 11

test_facetsMethod · 0.36
test_facetsMethod · 0.36
test_facetMethod · 0.36
test_multiple_narrowMethod · 0.36
test_narrowMethod · 0.36
test_facetMethod · 0.36
test_multiple_narrowMethod · 0.36
test_narrowMethod · 0.36
test_facetMethod · 0.36
test_multiple_narrowMethod · 0.36
test_narrowMethod · 0.36