const std::string &indexfn