Skip to content

Commit 5c6afe8

Browse files
authored
Change "Fields" to "Attributes" in info function (#153)
1 parent d5b6b35 commit 5c6afe8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redisearch/client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)