@Service(value="blI18nSolrIndexServiceExtensionHandler") public class I18nSolrIndexServiceExtensionHandler extends AbstractSolrIndexServiceExtensionHandler implements SolrIndexServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected SolrIndexServiceExtensionManager |
extensionManager |
protected LocaleService |
localeService |
protected SolrHelperService |
shs |
protected TranslationService |
translationService |
enabled, priority| Constructor and Description |
|---|
I18nSolrIndexServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntitiesToTranslationCache(List<String> entityIds,
TranslatedEntity translatedEntity) |
ExtensionResultStatusType |
addPropertyValues(Indexable indexable,
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 |
endBatchEvent(List<? extends Indexable> indexables)
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<? extends Indexable> indexables)
Perform actions at the start of a batch to improve performance of Solr search for the list of batch products.
|
attachAdditionalBasicFields, attachAdditionalDocumentFields, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexFieldisEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachAdditionalBasicFields, attachAdditionalDocumentFields, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexFieldisEnabledprotected SolrHelperService shs
protected SolrIndexServiceExtensionManager extensionManager
protected TranslationService translationService
protected LocaleService localeService
public I18nSolrIndexServiceExtensionHandler()
protected boolean getTranslationEnabled()
@PostConstruct public void init()
public ExtensionResultStatusType addPropertyValues(Indexable indexable, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
SolrIndexServiceExtensionHandleraddPropertyValues in interface SolrIndexServiceExtensionHandleraddPropertyValues in class AbstractSolrIndexServiceExtensionHandlerNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionprotected ExtensionResultStatusType getLocalePrefix(Field field, List<String> prefixList)
context - field - public ExtensionResultStatusType startBatchEvent(List<? extends Indexable> indexables)
SolrIndexServiceExtensionHandlerstartBatchEvent in interface SolrIndexServiceExtensionHandlerstartBatchEvent in class AbstractSolrIndexServiceExtensionHandlerprotected void addEntitiesToTranslationCache(List<String> entityIds, TranslatedEntity translatedEntity)
public ExtensionResultStatusType endBatchEvent(List<? extends Indexable> indexables)
SolrIndexServiceExtensionHandlerendBatchEvent in interface SolrIndexServiceExtensionHandlerendBatchEvent in class AbstractSolrIndexServiceExtensionHandlerpublic int getPriority()
getPriority in interface ExtensionHandlergetPriority in class AbstractExtensionHandlerCopyright © 2019. All rights reserved.