@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 |
|---|---|
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() |
protected boolean |
getTranslationEnabled() |
void |
init() |
attachAdditionalBasicFields, filterSearchFacetRanges, getCategoryId, getProductId, getSolrDocumentId, modifySolrQueryisEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachAdditionalBasicFields, filterSearchFacetRanges, getCategoryId, getProductId, getSolrDocumentId, 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 AbstractSolrSearchServiceExtensionHandlerNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionprotected ExtensionResultStatusType getLocalePrefix(Field field, List<String> prefixList)
context - field - public int getPriority()
getPriority in interface ExtensionHandlergetPriority in class AbstractExtensionHandlerCopyright © 2014. All Rights Reserved.