Class DefaultSolrDocumentFactory
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrDocumentFactory
-
- All Implemented Interfaces:
SolrDocumentFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
- Direct Known Subclasses:
BackofficeSolrDocumentFactory
@Deprecated(since="1808") public class DefaultSolrDocumentFactory extends java.lang.Object implements SolrDocumentFactory, org.springframework.beans.factory.BeanFactoryAware
Deprecated.Since 1808, functionality is moved toDefaultIndexer.Default implementation ofSolrDocumentFactory.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringINDEXED_FIELDS_KEYDeprecated.protected static java.lang.StringVALUE_PROVIDERS_KEYDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultSolrDocumentFactory()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddCommonFields(org.apache.solr.common.SolrInputDocument document, IndexerBatchContext batchContext, ItemModel model)Deprecated.protected voidaddIndexedPropertyFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model)Deprecated.protected voidaddIndexedPropertyFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, ValueResolver<ItemModel> valueProvider)Deprecated.protected voidaddIndexedPropertyFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, FieldValueProvider valueProvider)Deprecated.protected voidaddIndexedTypeFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model)Deprecated.protected voidaddIndexedTypeFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, TypeValueResolver<ItemModel> typeValueProvider)Deprecated.protected voidaddIndexedTypeFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, IndexedTypeFieldsValuesProvider typeValueProvider)Deprecated.org.apache.solr.common.SolrInputDocumentcreateInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType)Deprecated.Converts fromItemModeltoSolrInputDocument.org.apache.solr.common.SolrInputDocumentcreateInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties)Deprecated.Converts fromItemModeltoSolrInputDocument(for partial updates).protected DefaultSolrInputDocumentcreateWrappedDocument(IndexerBatchContext batchContext, org.apache.solr.common.SolrInputDocument delegate)Deprecated.protected DefaultSolrInputDocumentcreateWrappedDocumentForPartialUpdates(IndexerBatchContext batchContext, org.apache.solr.common.SolrInputDocument delegate, java.util.Set<java.lang.String> indexedPropertiesFields)Deprecated.org.springframework.beans.factory.BeanFactorygetBeanFactory()Deprecated.FieldNameProvidergetFieldNameProvider()Deprecated.protected IdentityProvider<ItemModel>getIdentityProvider(IndexedType indexedType)Deprecated.protected java.util.Set<java.lang.String>getIndexedFields(IndexerBatchContext batchContext)Deprecated.protected java.util.Set<java.lang.String>getIndexedFields(Index index, org.apache.solr.client.solrj.SolrClient solrClient)Deprecated.IndexerBatchContextFactorygetIndexerBatchContextFactory()Deprecated.ModelServicegetModelService()Deprecated.RangeNameProvidergetRangeNameProvider()Deprecated.SolrSearchProviderFactorygetSolrSearchProviderFactory()Deprecated.TypeServicegetTypeService()Deprecated.protected java.lang.ObjectgetTypeValueProvider(java.lang.String beanName)Deprecated.ValueProviderSelectionStrategygetValueProviderSelectionStrategy()Deprecated.protected voidhandleError(IndexConfig indexConfig, java.lang.String message, java.lang.Exception error)Deprecated.protected java.util.Map<java.lang.String,java.util.Collection<IndexedProperty>>resolveValueProviders(IndexerBatchContext batchContext)Deprecated.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Deprecated.voidsetFieldNameProvider(FieldNameProvider fieldNameProvider)Deprecated.voidsetIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory)Deprecated.voidsetModelService(ModelService modelService)Deprecated.voidsetRangeNameProvider(RangeNameProvider rangeNameProvider)Deprecated.voidsetSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)Deprecated.voidsetTypeService(TypeService typeService)Deprecated.voidsetValueProviderSelectionStrategy(ValueProviderSelectionStrategy valueProviderSelectionStrategy)Deprecated.protected voidvalidateCommonRequiredParameters(ItemModel item, IndexConfig indexConfig, IndexedType indexedType)Deprecated.
-
-
-
Field Detail
-
VALUE_PROVIDERS_KEY
protected static final java.lang.String VALUE_PROVIDERS_KEY
Deprecated.- See Also:
- Constant Field Values
-
INDEXED_FIELDS_KEY
protected static final java.lang.String INDEXED_FIELDS_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getModelService
public ModelService getModelService()
Deprecated.
-
setModelService
public void setModelService(ModelService modelService)
Deprecated.
-
getTypeService
public TypeService getTypeService()
Deprecated.
-
setTypeService
public void setTypeService(TypeService typeService)
Deprecated.
-
getSolrSearchProviderFactory
public SolrSearchProviderFactory getSolrSearchProviderFactory()
Deprecated.
-
setSolrSearchProviderFactory
public void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
Deprecated.
-
getIndexerBatchContextFactory
public IndexerBatchContextFactory getIndexerBatchContextFactory()
Deprecated.
-
setIndexerBatchContextFactory
public void setIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory)
Deprecated.
-
getFieldNameProvider
public FieldNameProvider getFieldNameProvider()
Deprecated.
-
setFieldNameProvider
public void setFieldNameProvider(FieldNameProvider fieldNameProvider)
Deprecated.
-
getRangeNameProvider
public RangeNameProvider getRangeNameProvider()
Deprecated.
-
setRangeNameProvider
public void setRangeNameProvider(RangeNameProvider rangeNameProvider)
Deprecated.
-
getValueProviderSelectionStrategy
public ValueProviderSelectionStrategy getValueProviderSelectionStrategy()
Deprecated.
-
setValueProviderSelectionStrategy
public void setValueProviderSelectionStrategy(ValueProviderSelectionStrategy valueProviderSelectionStrategy)
Deprecated.
-
getBeanFactory
public org.springframework.beans.factory.BeanFactory getBeanFactory()
Deprecated.
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Deprecated.- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-
createInputDocument
public org.apache.solr.common.SolrInputDocument createInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType) throws FieldValueProviderException
Deprecated.Description copied from interface:SolrDocumentFactoryConverts fromItemModeltoSolrInputDocument.- Specified by:
createInputDocumentin interfaceSolrDocumentFactory- Throws:
FieldValueProviderException- thrown in case of problem during properties translation
-
createInputDocument
public org.apache.solr.common.SolrInputDocument createInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties) throws FieldValueProviderException
Deprecated.Description copied from interface:SolrDocumentFactoryConverts fromItemModeltoSolrInputDocument(for partial updates).- Specified by:
createInputDocumentin interfaceSolrDocumentFactory- Throws:
FieldValueProviderException- thrown in case of problem during properties translation
-
validateCommonRequiredParameters
protected void validateCommonRequiredParameters(ItemModel item, IndexConfig indexConfig, IndexedType indexedType)
Deprecated.
-
createWrappedDocument
protected DefaultSolrInputDocument createWrappedDocument(IndexerBatchContext batchContext, org.apache.solr.common.SolrInputDocument delegate)
Deprecated.
-
createWrappedDocumentForPartialUpdates
protected DefaultSolrInputDocument createWrappedDocumentForPartialUpdates(IndexerBatchContext batchContext, org.apache.solr.common.SolrInputDocument delegate, java.util.Set<java.lang.String> indexedPropertiesFields)
Deprecated.
-
addCommonFields
protected void addCommonFields(org.apache.solr.common.SolrInputDocument document, IndexerBatchContext batchContext, ItemModel model)Deprecated.
-
addIndexedPropertyFields
protected void addIndexedPropertyFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
addIndexedPropertyFieldsForOldApi
protected void addIndexedPropertyFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, FieldValueProvider valueProvider) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
addIndexedPropertyFieldsForNewApi
protected void addIndexedPropertyFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, ValueResolver<ItemModel> valueProvider) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
addIndexedTypeFields
protected void addIndexedTypeFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
addIndexedTypeFieldsForOldApi
protected void addIndexedTypeFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, IndexedTypeFieldsValuesProvider typeValueProvider) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
addIndexedTypeFieldsForNewApi
protected void addIndexedTypeFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, TypeValueResolver<ItemModel> typeValueProvider) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
resolveValueProviders
protected java.util.Map<java.lang.String,java.util.Collection<IndexedProperty>> resolveValueProviders(IndexerBatchContext batchContext)
Deprecated.
-
getIndexedFields
protected java.util.Set<java.lang.String> getIndexedFields(IndexerBatchContext batchContext) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
getIndexedFields
protected java.util.Set<java.lang.String> getIndexedFields(Index index, org.apache.solr.client.solrj.SolrClient solrClient) throws org.apache.solr.client.solrj.SolrServerException, java.io.IOException
Deprecated.- Throws:
org.apache.solr.client.solrj.SolrServerExceptionjava.io.IOException
-
handleError
protected void handleError(IndexConfig indexConfig, java.lang.String message, java.lang.Exception error) throws FieldValueProviderException
Deprecated.- Throws:
FieldValueProviderException
-
getIdentityProvider
protected IdentityProvider<ItemModel> getIdentityProvider(IndexedType indexedType)
Deprecated.
-
getTypeValueProvider
protected java.lang.Object getTypeValueProvider(java.lang.String beanName)
Deprecated.
-
-