K - document key typepublic static class HybridReply.HybridResult<K> extends Object
FT.HYBRID result entry.
getFields() maps each field name to a FieldValue, which retains the exact bytes returned by the server
and can be read as either text (FieldValue.asString()) or binary (FieldValue.asBytes()). This lets a
single result mix textual/numeric fields with binary fields such as vector embeddings loaded via LOAD, where
UTF-8 decoding would corrupt the value.
| Constructor and Description |
|---|
HybridResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String key,
byte[] value)
Adds a single result field.
|
Map<String,FieldValue> |
getFields()
Gets the result fields, mapping each field name to its
FieldValue, in the order returned by the server. |
K |
getId()
Get the decoded document key.
|
public K getId()
null when the result does not represent an individual documentpublic Map<String,FieldValue> getFields()
FieldValue, in the order returned by the server. Read
each value as text via FieldValue.asString() or as raw bytes via FieldValue.asBytes().FieldValue, or an empty map if not availablepublic void addField(String key, byte[] value)
key - the field namevalue - the raw field valueCopyright © 2026 lettuce.io. All rights reserved.