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

Method search

aleph/search/query.py:292–303  ·  view source on GitHub ↗

Execute the query as assmbled.

(self)

Source from the content-addressed store, hash-verified

290 return " ".join([p for p in parts if p is not None])
291
292 def search(self):
293 """Execute the query as assmbled."""
294 # log.info("Search index: %s", self.get_index())
295 result = es.search(index=self.get_index(), body=self.get_body())
296 # log.info(
297 # f"Elasticsearch query [{self.to_text()}] took {result.get('took')}ms",
298 # query=self.to_text(),
299 # took=result.get("took"),
300 # )
301 # log.info("%s", pformat(self.get_body()))
302 # log.info("%s", pformat(self.parser.filters))
303 return result
304
305 @classmethod
306 def handle(cls, request, parser=None, **kwargs):

Callers 9

export_collectionsFunction · 0.80
__init__Method · 0.80
reconcile_opFunction · 0.80
suggest_entityFunction · 0.80
entities_by_idsFunction · 0.80
update_collection_statsFunction · 0.80
get_notificationsFunction · 0.80
_query_itemFunction · 0.80
check_alertFunction · 0.80

Calls 2

get_indexMethod · 0.95
get_bodyMethod · 0.95

Tested by

no test coverage detected