MCPcopy
hub / github.com/redis/redis-py / _parse_profile

Method _parse_profile

redis/commands/search/commands.py:297–310  ·  view source on GitHub ↗
(self, res, **kwargs)

Source from the content-addressed store, hash-verified

295 return self._get_aggregate_result(res, kwargs["query"], kwargs["has_cursor"])
296
297 def _parse_profile(self, res, **kwargs):
298 query = kwargs["query"]
299 if isinstance(query, AggregateRequest):
300 result = self._get_aggregate_result(res[0], query, query._cursor)
301 else:
302 result = Result(
303 res[0],
304 not query._no_content,
305 duration=kwargs["duration"],
306 has_payload=query._with_payloads,
307 with_scores=query._with_scores,
308 )
309
310 return result, ProfileInformation(res[1])
311
312 def _parse_spellcheck(self, res, **kwargs):
313 corrections = {}

Callers 1

_parse_profile_resp3Method · 0.95

Calls 3

_get_aggregate_resultMethod · 0.95
ResultClass · 0.85
ProfileInformationClass · 0.85

Tested by

no test coverage detected