updated index method to allow cleaner api and use redis.multi
implemented the new indexing api