Class SolrResponseDocumentCatalogDecorator
- java.lang.Object
-
- com.broadleafcommerce.search.provider.solr.response.SolrResponseDocumentCatalogDecorator
-
- All Implemented Interfaces:
SolrResponseDocumentDecorator
public class SolrResponseDocumentCatalogDecorator extends Object implements SolrResponseDocumentDecorator
Populate the catalog ID on the result, if the document has one.
-
-
Constructor Summary
Constructors Constructor Description SolrResponseDocumentCatalogDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decorate(org.apache.solr.common.SolrDocument document, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, Map<String,Object> result, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Add some extra information to the result object mapped from the document.
-
-
-
Method Detail
-
decorate
public void decorate(org.apache.solr.common.SolrDocument document, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, Map<String,Object> result, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:SolrResponseDocumentDecorator
Add some extra information to the result object mapped from the document.- Specified by:
decorate
in interfaceSolrResponseDocumentDecorator
- Parameters:
document
- the document from which the result was mappedfieldDefinitions
- the field definitions which were mapped on the documentresult
- the result object mapped from the documentcontextInfo
- the optional contextInfo instance
-
-