Secondary indexes

I think I submitted this patch before but now I can't see it