public abstract class AbstractSolrIndexServiceExtensionHandler extends AbstractExtensionHandler implements SolrIndexServiceExtensionHandler
enabled, priority| Constructor and Description |
|---|
AbstractSolrIndexServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
addPropertyValues(Indexable indexable,
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(Indexable indexable,
org.apache.solr.common.SolrInputDocument document,
SolrHelperService shs)
Allows the extension additional fields to the document that are not configured via the DB.
|
ExtensionResultStatusType |
attachAdditionalDocumentFields(Indexable indexable,
org.apache.solr.common.SolrInputDocument document) |
ExtensionResultStatusType |
endBatchEvent(List<? extends Indexable> products)
Perform actions to end a batch event, such as closing any Contexts that have been previously created.
|
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 |
getIndexableId(Indexable indexable,
Long[] returnContainer)
In certain scenarios, the requested product id might not be the one that should be used in Solr.
|
ExtensionResultStatusType |
modifyBuiltDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents,
List<? extends Indexable> products,
List<IndexField> fields,
List<Locale> locales) |
ExtensionResultStatusType |
populateDocumentForIndexField(org.apache.solr.common.SolrInputDocument document,
IndexField field,
FieldType fieldType,
Map<String,Object> propertyValues)
This is used to populate any fields for the given parameters as well as adding any property names to the added properties list.
|
ExtensionResultStatusType |
startBatchEvent(List<? extends Indexable> 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 AbstractSolrIndexServiceExtensionHandler()
public ExtensionResultStatusType addPropertyValues(Indexable indexable, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
SolrIndexServiceExtensionHandleraddPropertyValues in interface SolrIndexServiceExtensionHandlerIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic ExtensionResultStatusType attachAdditionalBasicFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document, SolrHelperService shs)
SolrIndexServiceExtensionHandlerattachAdditionalBasicFields in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType populateDocumentForIndexField(org.apache.solr.common.SolrInputDocument document, IndexField field, FieldType fieldType, Map<String,Object> propertyValues)
SolrIndexServiceExtensionHandlerpopulateDocumentForIndexField in interface SolrIndexServiceExtensionHandlerdocument - the document we are populatingfield - the field we are populating the document withfieldType - the field type of the fieldpropertyValues - the property values for the given Fieldpublic ExtensionResultStatusType attachAdditionalDocumentFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document)
attachAdditionalDocumentFields in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType modifyBuiltDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents, List<? extends Indexable> products, List<IndexField> fields, List<Locale> locales)
modifyBuiltDocuments in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType startBatchEvent(List<? extends Indexable> products)
SolrIndexServiceExtensionHandlerstartBatchEvent in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType endBatchEvent(List<? extends Indexable> products)
SolrIndexServiceExtensionHandlerendBatchEvent in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType getIndexableId(Indexable indexable, Long[] returnContainer)
SolrIndexServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getIndexableId in interface SolrIndexServiceExtensionHandlerpublic ExtensionResultStatusType getCategoryId(Long category, Long[] returnContainer)
SolrIndexServiceExtensionHandlerExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.getCategoryId in interface SolrIndexServiceExtensionHandlerCopyright © 2021. All rights reserved.