Interface SolrResponseDocumentDecorator
- All Known Implementing Classes:
SolrResponseDocumentCatalogDecorator
,SolrResponseDocumentIdDecorator
,SolrResponseDocumentMoneyDecorator
,SolrResponseDocumentScoreDecorator
,SolrResponseDocumentSearchableDecorator
public interface SolrResponseDocumentDecorator
Implementations of this interface will populate some extra information on objects mapped from
Solr documents.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
decorate
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.- 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
-