@@ -2336,6 +2336,7 @@ func (c cmdable) FTTagVals(ctx context.Context, index string, field string) *Str
23362336// FTHybrid - Executes a hybrid search combining full-text search and vector similarity
23372337// The 'index' parameter specifies the index to search, 'searchExpr' is the search query,
23382338// 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with.
2339+ // FTHybrid is still experimental, the command behaviour and signature may change
23392340func (c cmdable ) FTHybrid (ctx context.Context , index string , searchExpr string , vectorField string , vectorData Vector ) * FTHybridCmd {
23402341 options := & FTHybridOptions {
23412342 CountExpressions : 2 ,
@@ -2350,18 +2351,11 @@ func (c cmdable) FTHybrid(ctx context.Context, index string, searchExpr string,
23502351}
23512352
23522353// FTHybridWithArgs - Executes a hybrid search with advanced options
2354+ // FTHybridWithArgs is still experimental, the command behaviour and signature may change
23532355func (c cmdable ) FTHybridWithArgs (ctx context.Context , index string , options * FTHybridOptions ) * FTHybridCmd {
23542356 args := []interface {}{"FT.HYBRID" , index }
23552357
23562358 if options != nil {
2357- // Add count expressions if specified
2358- if options .CountExpressions > 0 {
2359- args = append (args , options .CountExpressions )
2360- } else {
2361- // Default to 2 expressions (1 search + 1 vector)
2362- args = append (args , 2 )
2363- }
2364-
23652359 // Add search expressions
23662360 for _ , searchExpr := range options .SearchExpressions {
23672361 args = append (args , "SEARCH" , searchExpr .Query )
0 commit comments