Document doc = new Document();
doc.add(Field.Text("play", context.playTitle));
doc.add(Field.Text("act", context.actTitle));
doc.add(Field.Text("scene", context.sceneTitle));
doc.add(Field.Text("speaker", context.speaker));
doc.add(Field.Text("speech", context.speech.toString()));
try {
indexWriter.addDocument( doc );
} catch( IOException ioe ) {
logger.error( "Unable to add document to index", ioe);
}