Use the new ZRANGEBYLEX operators for getting ids on string queries. Requires redis version >= 2.8.9.