DefaultIndexer@Deprecated public class DefaultSolrDocumentFactory extends java.lang.Object implements SolrDocumentFactory
SolrDocumentFactory.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INDEXED_FIELDS_KEY
Deprecated.
|
protected static java.lang.String |
VALUE_PROVIDERS_KEY
Deprecated.
|
| Constructor and Description |
|---|
DefaultSolrDocumentFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonFields(SolrInputDocument document,
IndexerBatchContext batchContext,
ItemModel model)
Deprecated.
|
protected void |
addIndexedPropertyFields(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model)
Deprecated.
|
protected void |
addIndexedPropertyFieldsForNewApi(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model,
java.util.Collection<IndexedProperty> indexedProperties,
java.lang.String valueProviderId,
ValueResolver<ItemModel> valueProvider)
Deprecated.
|
protected void |
addIndexedPropertyFieldsForOldApi(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model,
java.util.Collection<IndexedProperty> indexedProperties,
java.lang.String valueProviderId,
FieldValueProvider valueProvider)
Deprecated.
|
protected void |
addIndexedTypeFields(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model)
Deprecated.
|
protected void |
addIndexedTypeFieldsForNewApi(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model,
java.lang.String typeValueProviderBeanId,
TypeValueResolver<ItemModel> typeValueProvider)
Deprecated.
|
protected void |
addIndexedTypeFieldsForOldApi(InputDocument document,
IndexerBatchContext batchContext,
ItemModel model,
java.lang.String typeValueProviderBeanId,
IndexedTypeFieldsValuesProvider typeValueProvider)
Deprecated.
|
SolrInputDocument |
createInputDocument(ItemModel model,
IndexConfig indexConfig,
IndexedType indexedType)
Deprecated.
Converts from
ItemModel to SolrInputDocument. |
SolrInputDocument |
createInputDocument(ItemModel model,
IndexConfig indexConfig,
IndexedType indexedType,
java.util.Collection<IndexedProperty> indexedProperties)
Deprecated.
Converts from
ItemModel to SolrInputDocument (for partial updates). |
protected DefaultSolrInputDocument |
createWrappedDocument(IndexerBatchContext batchContext,
SolrInputDocument delegate)
Deprecated.
|
protected DefaultSolrInputDocument |
createWrappedDocumentForPartialUpdates(IndexerBatchContext batchContext,
SolrInputDocument delegate,
java.util.Set<java.lang.String> indexedPropertiesFields)
Deprecated.
|
BeanFactory |
getBeanFactory()
Deprecated.
|
FieldNameProvider |
getFieldNameProvider()
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,
SolrClient solrClient)
Deprecated.
|
IndexerBatchContextFactory |
getIndexerBatchContextFactory()
Deprecated.
|
ModelService |
getModelService()
Deprecated.
|
RangeNameProvider |
getRangeNameProvider()
Deprecated.
|
SolrSearchProviderFactory |
getSolrSearchProviderFactory()
Deprecated.
|
TypeService |
getTypeService()
Deprecated.
|
protected java.lang.Object |
getTypeValueProvider(java.lang.String beanName)
Deprecated.
|
ValueProviderSelectionStrategy |
getValueProviderSelectionStrategy()
Deprecated.
|
protected void |
handleError(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.
|
void |
setBeanFactory(BeanFactory beanFactory)
Deprecated.
|
void |
setFieldNameProvider(FieldNameProvider fieldNameProvider)
Deprecated.
|
void |
setIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory)
Deprecated.
|
void |
setModelService(ModelService modelService)
Deprecated.
|
void |
setRangeNameProvider(RangeNameProvider rangeNameProvider)
Deprecated.
|
void |
setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
Deprecated.
|
void |
setTypeService(TypeService typeService)
Deprecated.
|
void |
setValueProviderSelectionStrategy(ValueProviderSelectionStrategy valueProviderSelectionStrategy)
Deprecated.
|
protected void |
validateCommonRequiredParameters(ItemModel item,
IndexConfig indexConfig,
IndexedType indexedType)
Deprecated.
|
protected static final java.lang.String VALUE_PROVIDERS_KEY
protected static final java.lang.String INDEXED_FIELDS_KEY
public ModelService getModelService()
public void setModelService(ModelService modelService)
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
public SolrSearchProviderFactory getSolrSearchProviderFactory()
public void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
public IndexerBatchContextFactory getIndexerBatchContextFactory()
public void setIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory)
public FieldNameProvider getFieldNameProvider()
public void setFieldNameProvider(FieldNameProvider fieldNameProvider)
public RangeNameProvider getRangeNameProvider()
public void setRangeNameProvider(RangeNameProvider rangeNameProvider)
public ValueProviderSelectionStrategy getValueProviderSelectionStrategy()
public void setValueProviderSelectionStrategy(ValueProviderSelectionStrategy valueProviderSelectionStrategy)
public BeanFactory getBeanFactory()
public void setBeanFactory(BeanFactory beanFactory)
public SolrInputDocument createInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType) throws FieldValueProviderException
SolrDocumentFactoryItemModel to SolrInputDocument.createInputDocument in interface SolrDocumentFactoryFieldValueProviderException - thrown in case of problem during properties translationpublic SolrInputDocument createInputDocument(ItemModel model, IndexConfig indexConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties) throws FieldValueProviderException
SolrDocumentFactoryItemModel to SolrInputDocument (for partial updates).createInputDocument in interface SolrDocumentFactoryFieldValueProviderException - thrown in case of problem during properties translationprotected void validateCommonRequiredParameters(ItemModel item, IndexConfig indexConfig, IndexedType indexedType)
protected DefaultSolrInputDocument createWrappedDocument(IndexerBatchContext batchContext, SolrInputDocument delegate)
protected DefaultSolrInputDocument createWrappedDocumentForPartialUpdates(IndexerBatchContext batchContext, SolrInputDocument delegate, java.util.Set<java.lang.String> indexedPropertiesFields)
protected void addCommonFields(SolrInputDocument document,
IndexerBatchContext batchContext,
ItemModel model)
protected void addIndexedPropertyFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model) throws FieldValueProviderException
FieldValueProviderExceptionprotected void addIndexedPropertyFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, FieldValueProvider valueProvider) throws FieldValueProviderException
FieldValueProviderExceptionprotected void addIndexedPropertyFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.util.Collection<IndexedProperty> indexedProperties, java.lang.String valueProviderId, ValueResolver<ItemModel> valueProvider) throws FieldValueProviderException
FieldValueProviderExceptionprotected void addIndexedTypeFields(InputDocument document, IndexerBatchContext batchContext, ItemModel model) throws FieldValueProviderException
FieldValueProviderExceptionprotected void addIndexedTypeFieldsForOldApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, IndexedTypeFieldsValuesProvider typeValueProvider) throws FieldValueProviderException
FieldValueProviderExceptionprotected void addIndexedTypeFieldsForNewApi(InputDocument document, IndexerBatchContext batchContext, ItemModel model, java.lang.String typeValueProviderBeanId, TypeValueResolver<ItemModel> typeValueProvider) throws FieldValueProviderException
FieldValueProviderExceptionprotected java.util.Map<java.lang.String,java.util.Collection<IndexedProperty>> resolveValueProviders(IndexerBatchContext batchContext)
protected java.util.Set<java.lang.String> getIndexedFields(IndexerBatchContext batchContext) throws FieldValueProviderException
FieldValueProviderExceptionprotected java.util.Set<java.lang.String> getIndexedFields(Index index, SolrClient solrClient) throws SolrServerException, java.io.IOException
SolrServerExceptionjava.io.IOExceptionprotected void handleError(IndexConfig indexConfig, java.lang.String message, java.lang.Exception error) throws FieldValueProviderException
FieldValueProviderExceptionprotected IdentityProvider<ItemModel> getIdentityProvider(IndexedType indexedType)
protected java.lang.Object getTypeValueProvider(java.lang.String beanName)
Copyright © 2018 SAP SE. All Rights Reserved.