Package org.mycore.solr.classification
Class MCRSolrCategoryLink
java.lang.Object
org.mycore.solr.classification.MCRSolrCategoryLink
Simple helper class to handle a classification link in solr.
- Author:
- Matthias Eichner
-
Constructor Summary
ConstructorDescriptionMCRSolrCategoryLink
(MCRCategoryID categoryId, MCRCategLinkReference linkReference) Creates a new link object. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.common.SolrInputDocument
Transform this link object to a solr document.
-
Constructor Details
-
MCRSolrCategoryLink
Creates a new link object.- Parameters:
categoryId
- category of the linklinkReference
- 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
-