qdrant_client.local.payload_value_extractor module
- test_value_by_key() None[source]
- value_by_key(payload: dict, key: str, flat: bool = True) Optional[List[Any]][source]
Get value from payload by key. :param payload: arbitrary json-like object :param flat: If True, extend list of values. If False, append :param key: Key or path to value in payload.
Examples
“name”
“address.city”
“location[].name”
“location[0].name”
- Returns
List of values or None if key not found.