Search the file using the index file created by a script