Class MCRSolrCategoryLink

java.lang.Object
org.mycore.solr.classification.MCRSolrCategoryLink

public class MCRSolrCategoryLink extends Object
Simple helper class to handle a classification link in solr.
Author:
Matthias Eichner
  • Constructor Details

    • MCRSolrCategoryLink

      public MCRSolrCategoryLink(MCRCategoryID categoryId, MCRCategLinkReference linkReference)
      Creates a new link object.
      Parameters:
      categoryId - category of the link
      linkReference - the link reference
  • Method Details

    • toSolrDocument

      public org.apache.solr.common.SolrInputDocument toSolrDocument()
      Transform this link object to a solr document.
      • id - combination of the object id and the category separated by a dollar sign
      • object - object id
      • category - category id
      • type - fix string "link"
      • linkType - type of the link
      Returns:
      a new solr document