public interface SolrHelperService
| Modifier and Type | Method and Description |
|---|---|
String |
getCategoryFieldName() |
Long |
getCategoryId(Long tentativeCategoryId)
In certain cases, the category id used for Solr indexing is different than the direct id on the product.
|
String |
getCategorySortFieldName(Category category) |
String |
getCategorySortFieldName(Long categoryId) |
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() |
Long |
getProductId(Long tentativeProductId)
In certain cases, the product id used for Solr indexing is different than the direct id on the product.
|
String |
getProductIdFieldName() |
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
|
List<FieldType> |
getSearchableFieldTypes(Field field)
Returns the searchable field types for the given field.
|
String |
getSolrDocumentId(org.apache.solr.common.SolrInputDocument document,
Product product) |
void |
swapActiveCores()
Swaps the primary and reindex cores.
|
void swapActiveCores()
throws ServiceException
ServiceExceptionString getCurrentNamespace()
String getGlobalFacetTagField()
String getPropertyNameForFieldSearchable(Field field, FieldType searchableFieldType, String prefix)
field - searchableFieldType - prefix - String getPropertyNameForFieldFacet(Field field, String prefix)
field - prefix - List<FieldType> getSearchableFieldTypes(Field field)
field - String getPropertyNameForFieldSearchable(Field field, FieldType searchableFieldType)
field - searchableFieldType - String getPropertyNameForFieldFacet(Field field)
field - String getSolrDocumentId(org.apache.solr.common.SolrInputDocument document, Product product)
product - String getNamespaceFieldName()
String getIdFieldName()
String getProductIdFieldName()
String getCategoryFieldName()
String getExplicitCategoryFieldName()
String getCategorySortFieldName(Category category)
category - String getCategorySortFieldName(Long categoryId)
categoryId - String getLocalePrefix()
String getDefaultLocalePrefix()
Locale getDefaultLocale()
Long getCategoryId(Long tentativeCategoryId)
tentativeCategoryId - Copyright © 2014. All Rights Reserved.