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

Method get_body

aleph/search/query.py:252–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

250 return self.SOURCE
251
252 def get_body(self):
253 body = {
254 "query": self.get_query(),
255 "post_filter": self.get_post_filters(),
256 "from": self.parser.offset,
257 "size": self.parser.limit,
258 "aggregations": self.get_aggregations(),
259 "sort": self.get_sort(),
260 "highlight": self.get_highlight(),
261 "_source": self.get_source(),
262 }
263 # log.info("Query: %s", pformat(body))
264 return body
265
266 def get_index(self):
267 raise NotImplementedError

Callers 2

searchMethod · 0.95
test_offsetMethod · 0.80

Calls 6

get_queryMethod · 0.95
get_post_filtersMethod · 0.95
get_aggregationsMethod · 0.95
get_sortMethod · 0.95
get_highlightMethod · 0.95
get_sourceMethod · 0.95

Tested by 1

test_offsetMethod · 0.64