public interface SolrIndexServiceExtensionHandler extends ExtensionHandler
AbstractSolrIndexServiceExtensionHandler
to protect from API changes to this interface| 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 |
attachChildDocuments(Indexable indexable,
org.apache.solr.common.SolrInputDocument document,
List<IndexField> fields,
List<Locale> locales)
This extension point allows other modules to contribute child documents to this document.
|
ExtensionResultStatusType |
endBatchEvent(List<? extends Indexable> indexables)
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> items,
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> indexables)
Perform actions at the start of a batch to improve performance of Solr search for the list of batch products.
|
getPriority, isEnabledExtensionResultStatusType getCategoryId(Long category, Long[] returnContainer)
ExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.category - returnContainer - ExtensionResultStatusType getIndexableId(Indexable indexable, Long[] returnContainer)
ExtensionResultStatusType.HANDLED, the value placed in the 0th element
in the returnContainer should be used.product - returnContainer - ExtensionResultStatusType modifyBuiltDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents, List<? extends Indexable> items, List<IndexField> fields, List<Locale> locales)
ExtensionResultStatusType startBatchEvent(List<? extends Indexable> indexables)
products - ExtensionResultStatusType endBatchEvent(List<? extends Indexable> indexables)
ExtensionResultStatusType addPropertyValues(Indexable indexable, Field field, FieldType fieldType, Map<String,Object> values, String propertyName, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
product - field - values - propertyName - locales - IllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionExtensionResultStatusType attachAdditionalBasicFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document, SolrHelperService shs)
ExtensionResultStatusType populateDocumentForIndexField(org.apache.solr.common.SolrInputDocument document, IndexField field, FieldType fieldType, Map<String,Object> propertyValues)
document - 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 FieldaddedProperties - the properties that have been added to this document so farExtensionResultStatusType attachAdditionalDocumentFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document)
ExtensionResultStatusType attachChildDocuments(Indexable indexable, org.apache.solr.common.SolrInputDocument document, List<IndexField> fields, List<Locale> locales)
indexable - document - fields - locales - ExtensionResultStatusType.NOT_HANDLED or ExtensionResultStatusType.HANDLED_CONTINUE.Copyright © 2018. All rights reserved.