Class SolrInputDocumentMapper

java.lang.Object
eu.dnetlib.dhp.solr.mapping.SolrInputDocumentMapper
All Implemented Interfaces:
Serializable

public class SolrInputDocumentMapper extends Object implements Serializable
See Also:
  • 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 a SolrRecord to a SolrInputDocument.
      Parameters:
      sr - the already-deserialized record
      json - the original JSON string of the record – stored verbatim in the __json field, avoiding a redundant re-serialization
      xml - the optional XML payload
      shouldFilterXmlPayload - whether to suppress the XML payload for non-qualifying records