public interface SolrSearchServiceExtensionHandler extends ExtensionHandler
| 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 |
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 |
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 |
filterSearchFacetRanges(SearchFacetDTO dto,
List<SearchFacetRange> ranges)
Builds the search facet ranges for the provided dto.
|
ExtensionResultStatusType |
getCategoryId(Long tentativeId,
Long[] returnContainer)
In certain scenarios, the requested category id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
getProductId(Long tentativeId,
Long[] returnContainer)
In certain scenarios, the requested product 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 |
modifySolrQuery(org.apache.solr.client.solrj.SolrQuery query,
String qualifiedSolrQuery,
List<SearchFacetDTO> facets,
ProductSearchCriteria searchCriteria,
String defaultSort)
Provides an extension point to modify the SolrQuery.
|
getPriority, isEnabledExtensionResultStatusType buildPrefixListForSearchableFacet(Field field, List<String> prefixList)
ExtensionResultStatusType buildPrefixListForSearchableField(Field field, FieldType searchableFieldType, List<String> prefixList)
ExtensionResultStatusType filterSearchFacetRanges(SearchFacetDTO dto, List<SearchFacetRange> ranges)
context - dto - ranges - ExtensionResultStatusType addPropertyValues(Product product, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
product - field - values - propertyName - locales - IllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionExtensionResultStatusType modifySolrQuery(org.apache.solr.client.solrj.SolrQuery query, String qualifiedSolrQuery, List<SearchFacetDTO> facets, ProductSearchCriteria searchCriteria, String defaultSort)
context - query - qualifiedSolrQuery - facets - searchCriteria - defaultSort - * @returnExtensionResultStatusType attachAdditionalBasicFields(Product product, org.apache.solr.common.SolrInputDocument document, SolrHelperService shs)
ExtensionResultStatusType getSolrDocumentId(org.apache.solr.common.SolrInputDocument document, Product product, String[] returnContainer)
ExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.document - product - ExtensionResultStatusType getCategoryId(Long tentativeId, Long[] returnContainer)
ExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.tentativeId - returnContainer - ExtensionResultStatusType getProductId(Long tentativeId, Long[] returnContainer)
ExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.tentativeId - returnContainer - Copyright © 2014. All Rights Reserved.