K - Key type@Experimental public class CombineArgs<K> extends Object
CombineArgs.RRF,
CombineArgs.Linear| Modifier and Type | Class and Description |
|---|---|
static interface |
CombineArgs.CombineMethod<K>
Interface for combine methods (RRF or LINEAR).
|
static class |
CombineArgs.Linear<K>
Linear combine method.
|
static class |
CombineArgs.RRF<K>
Reciprocal Rank Fusion (RRF) combine method.
|
| Modifier and Type | Method and Description |
|---|---|
CombineArgs<K> |
as(K alias)
Set an alias for the combined score field using YIELD_SCORE_AS.
|
<V> void |
build(CommandArgs<K,V> args)
Build the COMBINE clause arguments.
|
static <K> CombineArgs<K> |
of(CombineArgs.CombineMethod<K> method)
Create CombineArgs with the specified combine method.
|
public static <K> CombineArgs<K> of(CombineArgs.CombineMethod<K> method)
K - Key typemethod - the combine method (RRF or Linear)public CombineArgs<K> as(K alias)
alias - the field name to use for the combined scorepublic <V> void build(CommandArgs<K,V> args)
V - value typeargs - the CommandArgs to append toCopyright © 2025 lettuce.io. All rights reserved.