MCPcopy Create free account
hub / github.com/alephdata/aleph / get_facet_total

Method get_facet_total

aleph/search/parser.py:165–169  ·  view source on GitHub ↗

Flag to perform a count of the total number of distinct values.

(self, name)

Source from the content-addressed store, hash-verified

163 return facet_size
164
165 def get_facet_total(self, name):
166 """Flag to perform a count of the total number of distinct values."""
167 if not self.authz.logged_in and name not in self.SMALL_FACETS:
168 return False
169 return self.getbool("facet_total:%s" % name, False)
170
171 def get_facet_values(self, name):
172 """Flag to disable returning actual values (i.e. count only)."""

Callers 2

to_dictMethod · 0.80
get_aggregationsMethod · 0.80

Calls 1

getboolMethod · 0.80

Tested by

no test coverage detected