Use HASH instead of id when setting ids for index.