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

Method _parse_search

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

Source from the content-addressed store, hash-verified

260 return dict(zip(it, it))
261
262 def _parse_search(self, res, **kwargs):
263 return Result(
264 res,
265 not kwargs["query"]._no_content,
266 duration=kwargs["duration"],
267 has_payload=kwargs["query"]._with_payloads,
268 with_scores=kwargs["query"]._with_scores,
269 field_encodings=kwargs["query"]._return_fields_decode_as,
270 )
271
272 def _parse_hybrid_search(self, res, **kwargs):
273 res_dict = pairs_to_dict(res, decode_keys=True)

Callers

nothing calls this directly

Calls 1

ResultClass · 0.85

Tested by

no test coverage detected