Index.txt files and IndexPlug were discussed in detail recently on the
mailing list. The best documentation I'm aware of is at the top of the
IndexPlug.pm file in the Greenstone "perllib/plugins" folder.