Class SolrResponseDocumentIdDecorator
java.lang.Object
com.broadleafcommerce.search.provider.solr.response.SolrResponseDocumentIdDecorator
- All Implemented Interfaces:
SolrResponseDocumentDecorator
public class SolrResponseDocumentIdDecorator
extends Object
implements SolrResponseDocumentDecorator
Populate the context ID on the result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(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.
-
Constructor Details
-
SolrResponseDocumentIdDecorator
public SolrResponseDocumentIdDecorator()
-
-
Method Details
-
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:SolrResponseDocumentDecoratorAdd some extra information to the result object mapped from the document.- Specified by:
decoratein 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
-