@Service(value="blSolrHelperService") public class SolrHelperServiceImpl extends java.lang.Object implements SolrHelperService
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_NAMESPACE |
protected static Locale |
defaultLocale |
protected SolrSearchServiceExtensionManager |
extensionManager |
protected static java.lang.String |
GLOBAL_FACET_TAG_FIELD |
protected LocaleService |
localeService |
protected static java.lang.String |
PREFIX_SEPARATOR |
protected static org.apache.solr.client.solrj.SolrServer |
server |
| Constructor and Description |
|---|
SolrHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
convertPrefixListToString(java.util.List<java.lang.String> prefixList) |
java.lang.String |
getCategoryFieldName() |
java.lang.String |
getCategorySortFieldName(Category category) |
java.lang.String |
getCurrentNamespace()
Determines the current namespace we are operating on.
|
Locale |
getDefaultLocale()
Returns the default locale.
|
java.lang.String |
getDefaultLocalePrefix() |
java.lang.String |
getExplicitCategoryFieldName() |
java.lang.String |
getGlobalFacetTagField()
This property is needed to be non-null to allow filtering by multiple facets at one time and have the results
be an AND of the facets.
|
java.lang.String |
getIdFieldName() |
java.lang.String |
getLocalePrefix()
Determines if there is a locale prefix that needs to be applied to the given field for this particular request.
|
java.lang.String |
getNamespaceFieldName() |
java.lang.String |
getProductIdFieldName() |
java.lang.String |
getPropertyNameForFieldFacet(Field field)
Returns the property name for the given field and its configured facet field type.
|
java.lang.String |
getPropertyNameForFieldFacet(Field field,
java.lang.String prefix)
Returns the property name for the given field, its configured facet field type, and the given prefix
|
java.lang.String |
getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType)
Returns the property name for the given field and field type.
|
java.lang.String |
getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType,
java.lang.String prefix)
Returns the property name for the given field, field type, and prefix
|
java.util.List<FieldType> |
getSearchableFieldTypes(Field field)
Returns the searchable field types for the given field.
|
java.lang.String |
getSolrDocumentId(org.apache.solr.common.SolrInputDocument document,
Product product) |
void |
swapActiveCores()
Swaps the primary and reindex cores.
|
protected static final java.lang.String GLOBAL_FACET_TAG_FIELD
protected static final java.lang.String DEFAULT_NAMESPACE
protected static final java.lang.String PREFIX_SEPARATOR
protected static Locale defaultLocale
protected static org.apache.solr.client.solrj.SolrServer server
protected LocaleService localeService
protected SolrSearchServiceExtensionManager extensionManager
public void swapActiveCores()
throws ServiceException
SolrHelperServiceswapActiveCores in interface SolrHelperServiceServiceExceptionpublic java.lang.String getCurrentNamespace()
SolrHelperServicegetCurrentNamespace in interface SolrHelperServicepublic java.lang.String getGlobalFacetTagField()
SolrHelperServicegetGlobalFacetTagField in interface SolrHelperServicepublic java.lang.String getPropertyNameForFieldSearchable(Field field, FieldType searchableFieldType, java.lang.String prefix)
SolrHelperServicegetPropertyNameForFieldSearchable in interface SolrHelperServicepublic java.lang.String getPropertyNameForFieldFacet(Field field, java.lang.String prefix)
SolrHelperServicegetPropertyNameForFieldFacet in interface SolrHelperServicepublic java.util.List<FieldType> getSearchableFieldTypes(Field field)
SolrHelperServicegetSearchableFieldTypes in interface SolrHelperServicepublic java.lang.String getPropertyNameForFieldSearchable(Field field, FieldType searchableFieldType)
SolrHelperServicegetPropertyNameForFieldSearchable in interface SolrHelperServicepublic java.lang.String getPropertyNameForFieldFacet(Field field)
SolrHelperServicegetPropertyNameForFieldFacet in interface SolrHelperServiceprotected java.lang.String convertPrefixListToString(java.util.List<java.lang.String> prefixList)
public java.lang.String getSolrDocumentId(org.apache.solr.common.SolrInputDocument document,
Product product)
getSolrDocumentId in interface SolrHelperServicepublic java.lang.String getNamespaceFieldName()
getNamespaceFieldName in interface SolrHelperServicepublic java.lang.String getIdFieldName()
getIdFieldName in interface SolrHelperServicepublic java.lang.String getProductIdFieldName()
getProductIdFieldName in interface SolrHelperServicepublic java.lang.String getCategoryFieldName()
getCategoryFieldName in interface SolrHelperServicepublic java.lang.String getExplicitCategoryFieldName()
getExplicitCategoryFieldName in interface SolrHelperServicepublic java.lang.String getCategorySortFieldName(Category category)
getCategorySortFieldName in interface SolrHelperServicepublic java.lang.String getLocalePrefix()
SolrHelperServicegetLocalePrefix in interface SolrHelperServicepublic java.lang.String getDefaultLocalePrefix()
getDefaultLocalePrefix in interface SolrHelperServicepublic Locale getDefaultLocale()
SolrHelperServicegetDefaultLocale in interface SolrHelperServiceCopyright © 2018. All Rights Reserved.