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

Method _hybrid_field_encodings

redis/commands/search/commands.py:601–608  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

599
600 @staticmethod
601 def _hybrid_field_encodings(**kwargs):
602 encodings = {}
603 for source_name in ("query", "post_processing"):
604 source = kwargs.get(source_name)
605 source_encodings = getattr(source, "_return_fields_decode_as", None)
606 if source_encodings:
607 encodings.update(source_encodings)
608 return encodings or None
609
610 @staticmethod
611 def _decode_hybrid_field_value(value, key, field_encodings):

Calls 2

updateMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected