@Service(value="blI18nSolrSearchServiceExtensionHandler") public class I18nSolrSearchServiceExtensionHandler extends AbstractSolrSearchServiceExtensionHandler implements SolrSearchServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected SolrSearchServiceExtensionManager |
extensionManager |
protected LocaleService |
localeService |
protected SolrHelperService |
shs |
protected TranslationService |
translationService |
enabled, priority| Constructor and Description |
|---|
I18nSolrSearchServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntitiesToTranslationCache(List<String> entityIds,
TranslatedEntity translatedEntity) |
ExtensionResultStatusType |
addPropertyValues(Product product,
Field field,
FieldType fieldType,
Map<String,Object> values,
String propertyName,
List<Locale> locales)
Given the input field, populates the values array with the fields needed for the
passed in field.
|
protected ExtensionResultStatusType |
addPropertyValues(Product product,
Sku sku,
boolean useSku,
Field field,
FieldType fieldType,
Map<String,Object> values,
String propertyName,
List<Locale> locales) |
ExtensionResultStatusType |
addPropertyValues(Sku sku,
Field field,
FieldType fieldType,
Map<String,Object> values,
String propertyName,
List<Locale> locales)
Given the input field, populates the values array with the fields needed for the
passed in field.
|
ExtensionResultStatusType |
buildPrefixListForSearchableFacet(Field field,
List<String> prefixList)
Returns a prefix if required for the passed in facet.
|
ExtensionResultStatusType |
buildPrefixListForSearchableField(Field field,
FieldType searchableFieldType,
List<String> prefixList)
Returns a prefix if required for the passed in searchable field.
|
ExtensionResultStatusType |
endBatchEvent()
Perform actions to end a batch event, such as closing any Contexts that have been previously created.
|
protected ExtensionResultStatusType |
getLocalePrefix(Field field,
List<String> prefixList)
If the field is translatable, take the current locale and add that as a prefix.
|
int |
getPriority() |
protected boolean |
getTranslationEnabled() |
void |
init() |
ExtensionResultStatusType |
startBatchEvent(List<Product> products)
Read all of the translations for this product batch and their default Skus.
|
attachAdditionalBasicFields, attachAdditionalBasicFields, batchFetchCatalogData, filterSearchFacetRanges, getCategoryId, getCategoryId, getProductId, getSkuId, getSolrDocumentId, getSolrDocumentId, modifyBuiltDocuments, modifySolrQueryisEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachAdditionalBasicFields, attachAdditionalBasicFields, batchFetchCatalogData, filterSearchFacetRanges, getCategoryId, getCategoryId, getProductId, getSkuId, getSolrDocumentId, getSolrDocumentId, modifyBuiltDocuments, modifySolrQueryisEnabledprotected SolrHelperService shs
protected SolrSearchServiceExtensionManager extensionManager
protected TranslationService translationService
protected LocaleService localeService
public I18nSolrSearchServiceExtensionHandler()
protected boolean getTranslationEnabled()
@PostConstruct public void init()
public ExtensionResultStatusType buildPrefixListForSearchableFacet(Field field, List<String> prefixList)
SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableFacet in interface SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableFacet in class AbstractSolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType buildPrefixListForSearchableField(Field field, FieldType searchableFieldType, List<String> prefixList)
SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableField in interface SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableField in class AbstractSolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType addPropertyValues(Product product, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
SolrSearchServiceExtensionHandleraddPropertyValues in interface SolrSearchServiceExtensionHandleraddPropertyValues in class AbstractSolrSearchServiceExtensionHandlerNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionpublic ExtensionResultStatusType addPropertyValues(Sku sku, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
SolrSearchServiceExtensionHandleraddPropertyValues in interface SolrSearchServiceExtensionHandleraddPropertyValues in class AbstractSolrSearchServiceExtensionHandlerNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionprotected ExtensionResultStatusType addPropertyValues(Product product, Sku sku, boolean useSku, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
protected ExtensionResultStatusType getLocalePrefix(Field field, List<String> prefixList)
context - field - public ExtensionResultStatusType startBatchEvent(List<Product> products)
startBatchEvent in interface SolrSearchServiceExtensionHandlerstartBatchEvent in class AbstractSolrSearchServiceExtensionHandlerprotected void addEntitiesToTranslationCache(List<String> entityIds, TranslatedEntity translatedEntity)
public ExtensionResultStatusType endBatchEvent()
SolrSearchServiceExtensionHandlerendBatchEvent in interface SolrSearchServiceExtensionHandlerendBatchEvent in class AbstractSolrSearchServiceExtensionHandlerpublic int getPriority()
getPriority in interface ExtensionHandlergetPriority in class AbstractExtensionHandlerCopyright © 2017. All rights reserved.