{"id":"b6b4ecd594011455","repo":"go-redis/redis","slug":"ft-hybrid-vector-data-is-required","errorCode":null,"errorMessage":"FT.HYBRID: vector data is required","messagePattern":"FT\\.HYBRID: vector data is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"search_commands.go","lineNumber":3757,"sourceCode":"// The 'index' parameter specifies the index to search, 'searchExpr' is the search query,\n// 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with.\n// FTHybrid is still experimental, the command behaviour and signature may change\nfunc (c cmdable) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, vectorData Vector) *FTHybridCmd {\n\toptions := &FTHybridOptions{\n\t\tCountExpressions: 2,\n\t\tSearchExpressions: []FTHybridSearchExpression{\n\t\t\t{Query: searchExpr},\n\t\t},\n\t\tVectorExpressions: []FTHybridVectorExpression{\n\t\t\t{VectorField: vectorField, VectorData: vectorData},\n\t\t},\n\t}\n\treturn c.FTHybridWithArgs(ctx, index, options)\n}\n\nfunc hybridVectorBlob(v Vector) (interface{}, error) {\n\tif v == nil {\n\t\treturn nil, fmt.Errorf(\"FT.HYBRID: vector data is required\")\n\t}\n\n\tswitch vector := v.(type) {\n\tcase *VectorFP32:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorFloat16:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorBFloat16:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorFloat64:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorInt8:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorUint8:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorValues, *VectorRef:\n\t\treturn nil, fmt.Errorf(\"FT.HYBRID: unsupported vector type %T\", v)\n\tdefault:","sourceCodeStart":3739,"sourceCodeEnd":3775,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/search_commands.go#L3739-L3775","documentation":"Error \"FT.HYBRID: vector data is required\" thrown in go-redis/redis.","triggerScenarios":"Thrown at search_commands.go:3757 when the library encounters an invalid state.","commonSituations":"Validate hybrid query inputs (vector presence) before dispatch.","solutions":["Provide vector data (blob or value list) in the FT.HYBRID vector clause","Populate the vector field before building the query"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}