@Service(value="blI18nSolrSearchServiceExtensionHandler") public class I18nSolrSearchServiceExtensionHandler extends AbstractSolrSearchServiceExtensionHandler implements SolrSearchServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected SolrSearchServiceExtensionManager |
extensionManager |
protected SolrHelperService |
shs |
protected boolean |
translationEnabled |
protected TranslationService |
translationService |
| Constructor and Description |
|---|
I18nSolrSearchServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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()
Determines the priority of this extension handler.
|
void |
init() |
attachAdditionalBasicFields, filterSearchFacetRanges, modifySolrQueryisEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachAdditionalBasicFields, filterSearchFacetRanges, modifySolrQueryisEnabledprotected SolrHelperService shs
protected SolrSearchServiceExtensionManager extensionManager
protected TranslationService translationService
@Value(value="${i18n.translation.enabled}")
protected boolean translationEnabled
public I18nSolrSearchServiceExtensionHandler()
@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 AbstractSolrSearchServiceExtensionHandlerNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionprotected ExtensionResultStatusType getLocalePrefix(Field field, List<String> prefixList)
context - field - public int getPriority()
AbstractExtensionHandlergetPriority in interface ExtensionHandlergetPriority in class AbstractExtensionHandlerCopyright © 2014. All Rights Reserved.