Index and get by id.