The original code to create the Relational Index was provided by Chris Santamaria. I modified the process to make it more transparent to the user. When the exit file menu is selected the transcript is automatically added to the SessionDB and the RelationalIndex is updated or created. This process is detailed in the pseudocode below.
On Exit ( Save current transcript to SessionDB if(keywords.txt exists) { // User has specificed keywords to build a relational index on if(RelationalIndex exists) { Read in old Relational Index } else { Create new Relational Index } Add current transcript to Relational Index } )