Updated rebuild AIP index script.

refs #4569

Updated script to rebuild AIP index so it works with "aip" type documents.