Package eu.dnetlib.dhp.solr.mapping
Class SolrInputDocumentMapper
java.lang.Object
eu.dnetlib.dhp.solr.mapping.SolrInputDocumentMapper
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SolrInputDocumentMapper
public SolrInputDocumentMapper()
-
-
Method Details
-
map
public static org.apache.solr.common.SolrInputDocument map(eu.dnetlib.dhp.schema.solr.SolrRecord sr, String json, String xml, boolean shouldFilterXmlPayload) Maps aSolrRecordto aSolrInputDocument.- Parameters:
sr- the already-deserialized recordjson- the original JSON string of the record – stored verbatim in the__jsonfield, avoiding a redundant re-serializationxml- the optional XML payloadshouldFilterXmlPayload- whether to suppress the XML payload for non-qualifying records
-