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

Method get_facet_values

aleph/search/parser.py:171–176  ·  view source on GitHub ↗

Flag to disable returning actual values (i.e. count only).

(self, name)

Source from the content-addressed store, hash-verified

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)."""
173 # Added to mitigate a DDoS by scripted facet bots (2020-11-24):
174 if self.get_facet_size(name) == 0:
175 return False
176 return self.getbool("facet_values:%s" % name, True)
177
178 def get_facet_type(self, name):
179 return self.get("facet_type:%s" % name)

Callers 2

to_dictMethod · 0.80
get_aggregationsMethod · 0.80

Calls 2

get_facet_sizeMethod · 0.95
getboolMethod · 0.80

Tested by

no test coverage detected