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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 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_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:
-
init
Description copied from interface:I_CmsSolrPostSearchProcessor
(Re-)Initializes the post processor.- Specified by:
init
in interfaceI_CmsSolrPostSearchProcessor
- See Also:
-