Add ranks to index object and got findLocations function working