Package org.opencms.search.solr
Class CmsSolrLinkProcessor
java.lang.Object
org.opencms.search.solr.CmsSolrLinkProcessor
- All Implemented Interfaces:
I_CmsSolrPostSearchProcessor
This Solr post processor generates for each found document the corresponding link and
adds this link into the resulting document as field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()(Re-)Initializes the post processor.org.apache.solr.common.SolrDocumentprocess(CmsObject cms, CmsResource resource, org.apache.solr.common.SolrInputDocument document) Performs the post processing.
-
Constructor Details
-
CmsSolrLinkProcessor
public CmsSolrLinkProcessor()
-
-
Method Details
-
process
public org.apache.solr.common.SolrDocument process(CmsObject cms, CmsResource resource, org.apache.solr.common.SolrInputDocument document) Description copied from interface:I_CmsSolrPostSearchProcessorPerforms the post processing.- Specified by:
processin interfaceI_CmsSolrPostSearchProcessor- Parameters:
cms- the CMS objectresource- the resource for the found documentdocument- the document itself- Returns:
- the manipulated Solr document
- See Also:
-
init
Description copied from interface:I_CmsSolrPostSearchProcessor(Re-)Initializes the post processor.- Specified by:
initin interfaceI_CmsSolrPostSearchProcessor- See Also:
-