public final class SolrInputDocumentFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.apache.solr.common.SolrInputDocument |
createSolrInputDocument(PDRObject pdrObject)
Factory method for the creation of Solr input documents.
|
public static org.apache.solr.common.SolrInputDocument createSolrInputDocument(PDRObject pdrObject) throws SolrCommandException, javax.xml.stream.XMLStreamException
pdrObject
- PDR object for which the appropriate index document will be created.SolrCommandException
- Error identifying the PDR type.javax.xml.stream.XMLStreamException
- Error while processing provided XML content.