File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ func (i *Client) Info() (*IndexInfo, error) {
545545 }
546546
547547 ret := IndexInfo {}
548- var schemaFields []interface {}
548+ var schemaAttributes []interface {}
549549 var indexOptions []string
550550
551551 // Iterate over the values
@@ -558,13 +558,13 @@ func (i *Client) Info() (*IndexInfo, error) {
558558 switch key {
559559 case "index_options" :
560560 indexOptions , _ = redis .Strings (res [ii + 1 ], nil )
561- case "fields " :
562- schemaFields , _ = redis .Values (res [ii + 1 ], nil )
561+ case "attributes " :
562+ schemaAttributes , _ = redis .Values (res [ii + 1 ], nil )
563563 }
564564 }
565565
566- if schemaFields != nil {
567- ret .loadSchema (schemaFields , indexOptions )
566+ if schemaAttributes != nil {
567+ ret .loadSchema (schemaAttributes , indexOptions )
568568 }
569569
570570 return & ret , nil
You can’t perform that action at this time.
0 commit comments