public abstract class AbstractSolrSearchServiceExtensionHandler extends AbstractExtensionHandler implements SolrSearchServiceExtensionHandler
enabled, priority| Constructor and Description |
|---|
AbstractSolrSearchServiceExtensionHandler() |
| 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 |
addPropertyValues(Sku sku,
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 |
attachAdditionalBasicFields(Product product,
org.apache.solr.common.SolrInputDocument document,
SolrHelperService shs)
Allows the extension additional fields to the document that are not configured via the DB.
|
ExtensionResultStatusType |
attachAdditionalBasicFields(Sku sku,
org.apache.solr.common.SolrInputDocument document,
SolrHelperService shs)
Allows the extension additional fields to the document that are not configured via the DB.
|
ExtensionResultStatusType |
batchFetchCatalogData(List<Product> products)
Batch fetch important collections for the entire list of products in single batch fetch queries.
|
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.
|
ExtensionResultStatusType |
endBatchEvent()
Perform actions to end a batch event, such as closing any Contexts that have been previously created.
|
ExtensionResultStatusType |
filterSearchFacetRanges(SearchFacetDTO dto,
List<SearchFacetRange> ranges)
Builds the search facet ranges for the provided dto.
|
ExtensionResultStatusType |
getCategoryId(Category category,
Long[] returnContainer)
In certain scenarios, the requested category id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
getCategoryId(Long category,
Long[] returnContainer)
In certain scenarios, the requested category id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
getProductId(Product product,
Long[] returnContainer)
In certain scenarios, the requested product id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
getSkuId(Sku sku,
Long[] returnContainer)
In certain scenarios, the requested sku id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
getSolrDocumentId(org.apache.solr.common.SolrInputDocument document,
Product product,
String[] returnContainer)
In certain scenarios, we may want to produce a different Solr document id than the default.
|
ExtensionResultStatusType |
getSolrDocumentId(org.apache.solr.common.SolrInputDocument document,
Sku product,
String[] returnContainer)
In certain scenarios, we may want to produce a different Solr document id than the default.
|
ExtensionResultStatusType |
modifyBuiltDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents,
List<Product> products,
List<Field> fields,
List<Locale> locales) |
ExtensionResultStatusType |
modifySolrQuery(org.apache.solr.client.solrj.SolrQuery query,
String qualifiedSolrQuery,
List<SearchFacetDTO> facets,
SearchCriteria searchCriteria,
String defaultSort)
Provides an extension point to modify the SolrQuery.
|
ExtensionResultStatusType |
startBatchEvent(List<Product> products)
Perform actions at the start of a batch to improve performance of Solr search for the list of batch products.
|
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledpublic AbstractSolrSearchServiceExtensionHandler()
public ExtensionResultStatusType buildPrefixListForSearchableFacet(Field field, List<String> prefixList)
SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableFacet in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType buildPrefixListForSearchableField(Field field, FieldType searchableFieldType, List<String> prefixList)
SolrSearchServiceExtensionHandlerbuildPrefixListForSearchableField in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType filterSearchFacetRanges(SearchFacetDTO dto, List<SearchFacetRange> ranges)
SolrSearchServiceExtensionHandlerfilterSearchFacetRanges in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType addPropertyValues(Product product, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
SolrSearchServiceExtensionHandleraddPropertyValues in interface SolrSearchServiceExtensionHandlerIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic ExtensionResultStatusType addPropertyValues(Sku sku, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
SolrSearchServiceExtensionHandleraddPropertyValues in interface SolrSearchServiceExtensionHandlerIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic ExtensionResultStatusType modifySolrQuery(org.apache.solr.client.solrj.SolrQuery query, String qualifiedSolrQuery, List<SearchFacetDTO> facets, SearchCriteria searchCriteria, String defaultSort)
SolrSearchServiceExtensionHandlermodifySolrQuery in interface SolrSearchServiceExtensionHandlerdefaultSort - * @returnpublic ExtensionResultStatusType attachAdditionalBasicFields(Product product, org.apache.solr.common.SolrInputDocument document, SolrHelperService shs)
SolrSearchServiceExtensionHandlerattachAdditionalBasicFields in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType attachAdditionalBasicFields(Sku sku, org.apache.solr.common.SolrInputDocument document, SolrHelperService shs)
SolrSearchServiceExtensionHandlerattachAdditionalBasicFields in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getSolrDocumentId(org.apache.solr.common.SolrInputDocument document, Product product, String[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getSolrDocumentId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getSolrDocumentId(org.apache.solr.common.SolrInputDocument document, Sku product, String[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getSolrDocumentId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getCategoryId(Category category, Long[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getCategoryId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getCategoryId(Long category, Long[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getCategoryId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getProductId(Product product, Long[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getProductId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType getSkuId(Sku sku, Long[] returnContainer)
SolrSearchServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getSkuId in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType modifyBuiltDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents, List<Product> products, List<Field> fields, List<Locale> locales)
modifyBuiltDocuments in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType startBatchEvent(List<Product> products)
SolrSearchServiceExtensionHandlerSolrSearchServiceExtensionHandler.batchFetchCatalogData(List).startBatchEvent in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType endBatchEvent()
SolrSearchServiceExtensionHandlerendBatchEvent in interface SolrSearchServiceExtensionHandlerpublic ExtensionResultStatusType batchFetchCatalogData(List<Product> products)
SolrSearchServiceExtensionHandlerSolrSearchServiceExtensionHandler.startBatchEvent(List).batchFetchCatalogData in interface SolrSearchServiceExtensionHandlerCopyright © 2017. All rights reserved.