public void endElement(String uri, String localName, String qName) throws SAXException {
if ("docs".equals(localName)) {
try {
this.solr.commit();
} catch (Exception e) {
throw new ProcessingException("Unable to commit the Solr documents.", e);
}
} else if ("doc".equals(localName)) {
try {
this.solr.add(this.doc);
this.doc = new SolrInputDocument();
} catch (Exception e) {
throw new ProcessingException("Unable to add the Solr document.", e);
}
} else if ("field".equals(localName)) {
if (!this.isNull && this.text.length() > 0) {
this.doc.addField(this.name, this.text, this.boost);
this.boost = 1.0f;