Implement support for secondary index reads

It looks like req.limit might be undefined here.