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

Method get_facet_interval

aleph/search/parser.py:181–187  ·  view source on GitHub ↗

Interval to facet on when faceting on date properties See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html#calendar_intervals # noqa for available options for possible values

(self, name)

Source from the content-addressed store, hash-verified

179 return self.get("facet_type:%s" % name)
180
181 def get_facet_interval(self, name):
182 """Interval to facet on when faceting on date properties
183
184 See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html#calendar_intervals # noqa
185 for available options for possible values
186 """
187 return self.get("facet_interval:%s" % name)
188
189 def to_dict(self):
190 parser = super(SearchQueryParser, self).to_dict()

Callers 2

to_dictMethod · 0.80
get_aggregationsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected