K - document key type@Experimental public class HybridReply<K> extends Object
FT.HYBRID command. Contains total result count, execution time, warnings, and a list of
results.
Each result carries its decoded document key and returned fields. Score information (text score, vector distance, combined
score) is included when using YIELD_SCORE_AS in the query.
| Modifier and Type | Class and Description |
|---|---|
static class |
HybridReply.HybridResult<K>
Represents a single
FT.HYBRID result entry. |
| Constructor and Description |
|---|
HybridReply()
Creates a new empty HybridReply instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(HybridReply.HybridResult<K> result)
Add a new result entry.
|
void |
addWarning(String warning)
Add a warning message.
|
double |
getExecutionTime() |
List<HybridReply.HybridResult<K>> |
getResults() |
long |
getTotalResults() |
List<String> |
getWarnings() |
boolean |
isEmpty() |
void |
setExecutionTime(double executionTime)
Set the execution time reported by the server.
|
void |
setTotalResults(long totalResults)
Set the total number of matching documents.
|
int |
size() |
public long getTotalResults()
public void setTotalResults(long totalResults)
totalResults - the total number of resultspublic double getExecutionTime()
0.0 if not available)public void setExecutionTime(double executionTime)
executionTime - execution time in secondspublic List<HybridReply.HybridResult<K>> getResults()
public void addResult(HybridReply.HybridResult<K> result)
result - the result to addpublic List<String> getWarnings()
public void addWarning(String warning)
warning - the warning to addpublic int size()
public boolean isEmpty()
true if no results were returnedCopyright © 2026 lettuce.io. All rights reserved.