Describe the bug

There is a documentation typo in chapter Adding auxiliary information in the index of https://redis.io/topics/indexes. In particular the search syntax uses an offset of 1 where it should use 0.

To reproduce The following is suggested in the current doc to retrieve mykey:...

127.0.0.1:6379> ZADD myindex 0 mykey:myvalue
(integer) 1
127.0.0.1:6379> ZADD myindex 0 myotherkey:myothervalue
(integer) 1
127.0.0.1:6379> ZRANGEBYLEX myindex [mykey: + LIMIT 1 1
1) "myotherkey:myothervalue"

which yields myotherkey:...

Expected behavior

127.0.0.1:6379> ZADD myindex 0 mykey:myvalue
(integer) 1
127.0.0.1:6379> ZADD myindex 0 myotherkey:myothervalue
(integer) 1
127.0.0.1:6379> ZRANGEBYLEX myindex [mykey: + LIMIT 0 1
1) "mykey:myvalue"

Best, Christoph

Comment From: huangzhw

@cheind Thanks. A PR issued.