|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.search.service.solr.SolrHelperServiceImpl
@Service(value="blSolrHelperService") public class SolrHelperServiceImpl
Provides utility methods that are used by other Solr service classes
| Field Summary | |
|---|---|
protected static Locale |
defaultLocale
|
protected SolrSearchServiceExtensionListener |
extensionManager
|
protected LocaleService |
localeService
|
protected static org.apache.solr.client.solrj.SolrServer |
server
|
| Constructor Summary | |
|---|---|
SolrHelperServiceImpl()
|
|
| Method Summary | |
|---|---|
String |
getCategoryFieldName()
|
String |
getCategorySortFieldName(Category category)
|
String |
getCurrentNamespace()
Determines the current namespace we are operating on. |
Locale |
getDefaultLocale()
Returns the default locale. |
String |
getDefaultLocalePrefix()
|
String |
getExplicitCategoryFieldName()
|
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. |
String |
getIdFieldName()
|
String |
getLocalePrefix()
Determines if there is a locale prefix that needs to be applied to the given field for this particular request. |
String |
getNamespaceFieldName()
|
String |
getPropertyNameForFieldFacet(Field field)
Returns the property name for the given field and its configured facet field type. |
String |
getPropertyNameForFieldFacet(Field field,
String prefix)
Returns the property name for the given field, its configured facet field type, and the given prefix |
String |
getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType)
Returns the property name for the given field and field type. |
String |
getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType,
String prefix)
Returns the property name for the given field, field type, and prefix |
String |
getSearchableFieldName()
|
String |
getSearchableFieldName(String prefix)
|
void |
swapActiveCores()
Swaps the primary and reindex cores. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Locale defaultLocale
protected static org.apache.solr.client.solrj.SolrServer server
protected LocaleService localeService
protected SolrSearchServiceExtensionListener extensionManager
| Constructor Detail |
|---|
public SolrHelperServiceImpl()
| Method Detail |
|---|
public void swapActiveCores()
throws ServiceException
SolrHelperService
swapActiveCores in interface SolrHelperServiceServiceExceptionpublic String getCurrentNamespace()
SolrHelperService
getCurrentNamespace in interface SolrHelperServicepublic String getGlobalFacetTagField()
SolrHelperService
getGlobalFacetTagField in interface SolrHelperService
public String getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType,
String prefix)
SolrHelperService
getPropertyNameForFieldSearchable in interface SolrHelperService
public String getPropertyNameForFieldFacet(Field field,
String prefix)
SolrHelperService
getPropertyNameForFieldFacet in interface SolrHelperService
public String getPropertyNameForFieldSearchable(Field field,
FieldType searchableFieldType)
SolrHelperService
getPropertyNameForFieldSearchable in interface SolrHelperServicepublic String getPropertyNameForFieldFacet(Field field)
SolrHelperService
getPropertyNameForFieldFacet in interface SolrHelperServicepublic String getNamespaceFieldName()
getNamespaceFieldName in interface SolrHelperServicepublic String getIdFieldName()
getIdFieldName in interface SolrHelperServicepublic String getCategoryFieldName()
getCategoryFieldName in interface SolrHelperServicepublic String getExplicitCategoryFieldName()
getExplicitCategoryFieldName in interface SolrHelperServicepublic String getSearchableFieldName(String prefix)
getSearchableFieldName in interface SolrHelperServicepublic String getSearchableFieldName()
getSearchableFieldName in interface SolrHelperServicepublic String getCategorySortFieldName(Category category)
getCategorySortFieldName in interface SolrHelperServicepublic String getLocalePrefix()
SolrHelperService
getLocalePrefix in interface SolrHelperServicepublic String getDefaultLocalePrefix()
getDefaultLocalePrefix in interface SolrHelperServicepublic Locale getDefaultLocale()
SolrHelperService
getDefaultLocale in interface SolrHelperService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||