Package org.opencms.search.solr
Class CmsSolrLinkProcessor
- java.lang.Object
-
- org.opencms.search.solr.CmsSolrLinkProcessor
-
- All Implemented Interfaces:
I_CmsSolrPostSearchProcessor
public class CmsSolrLinkProcessor extends java.lang.Object implements 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 Constructor Description CmsSolrLinkProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
(Re-)Initializes the post processor.org.apache.solr.common.SolrDocument
process(CmsObject cms, CmsResource resource, org.apache.solr.common.SolrInputDocument document)
Performs the post processing.
-
-
-
Constructor Detail
-
CmsSolrLinkProcessor
public CmsSolrLinkProcessor()
-
-
Method Detail
-
process
public org.apache.solr.common.SolrDocument process(CmsObject cms, CmsResource resource, org.apache.solr.common.SolrInputDocument document)
Description copied from interface:I_CmsSolrPostSearchProcessor
Performs the post processing.- Specified by:
process
in interfaceI_CmsSolrPostSearchProcessor
- Parameters:
cms
- the CMS objectresource
- the resource for the found documentdocument
- the document itself- Returns:
- the manipulated Solr document
- See Also:
I_CmsSolrPostSearchProcessor.process(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.apache.solr.common.SolrInputDocument)
-
init
public void init()
Description copied from interface:I_CmsSolrPostSearchProcessor
(Re-)Initializes the post processor.- Specified by:
init
in interfaceI_CmsSolrPostSearchProcessor
- See Also:
I_CmsSolrPostSearchProcessor.init()
-
-