get indexes script