// Setup parser for SOLR syntax and parse
PlainTextIndexConfig solrconfParser = new PlainTextIndexConfig();
solrconfParser.parse(descriptor);
// Get <doc> information
PlainTextDoc solrDoc = solrconfParser.getDoc();
if (pendingDoc == null) {
// create Lucene document
pendingDoc = new Document();