Class SolrResponseDocumentSearchableDecorator
java.lang.Object
com.broadleafcommerce.search.provider.solr.response.SolrResponseDocumentSearchableDecorator
- All Implemented Interfaces:
SolrResponseDocumentDecorator
public class SolrResponseDocumentSearchableDecorator
extends Object
implements SolrResponseDocumentDecorator
When
SearchSettingsProperties.isEnabled()
is true, adds searchable and online fields.- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
ConstructorsConstructorDescriptionSolrResponseDocumentSearchableDecorator
(com.broadleafcommerce.search.autoconfigure.SearchSettingsProperties searchSettingsProperties) -
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.protected com.broadleafcommerce.search.autoconfigure.SearchSettingsProperties
-
Constructor Details
-
SolrResponseDocumentSearchableDecorator
public SolrResponseDocumentSearchableDecorator(com.broadleafcommerce.search.autoconfigure.SearchSettingsProperties searchSettingsProperties)
-
-
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: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
-
getSearchSettingsProperties
protected com.broadleafcommerce.search.autoconfigure.SearchSettingsProperties getSearchSettingsProperties()
-