| Constructor and Description |
|---|
DefaultIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected BeanFactory |
getBeanFactory() |
protected Exporter |
getExporter(SolrServerMode serverMode) |
protected IdentityProvider<ItemModel> |
getIdentityProvider(IndexedType indexedType) |
SolrDocumentFactory |
getSolrDocumentFactory() |
SolrSearchProviderFactory |
getSolrSearchProviderFactory() |
protected void |
handleError(IndexConfig indexConfig,
IndexedType indexedType,
java.lang.String message,
java.lang.Exception error) |
java.util.Collection<SolrInputDocument> |
indexItems(java.util.Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Method send items to indexer.
|
java.util.Collection<SolrInputDocument> |
indexItems(java.util.Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.Collection<IndexedProperty> indexedProperties)
Method send items to indexer.
|
java.util.Collection<java.lang.String> |
removeItems(java.util.Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Remove from index all items by indexer identifiers.
|
void |
removeItemsByPk(java.util.Collection<PK> pks,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setSolrDocumentFactory(SolrDocumentFactory solrDocumentFactory) |
void |
setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory) |
public SolrSearchProviderFactory getSolrSearchProviderFactory()
public void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
public SolrDocumentFactory getSolrDocumentFactory()
public void setSolrDocumentFactory(SolrDocumentFactory solrDocumentFactory)
protected BeanFactory getBeanFactory()
public void setBeanFactory(BeanFactory beanFactory)
public java.util.Collection<SolrInputDocument> indexItems(java.util.Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, java.lang.InterruptedException
IndexerindexItems in interface Indexeritems - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionIndexerException - if an error occurs during indexingjava.lang.InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.public java.util.Collection<SolrInputDocument> indexItems(java.util.Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties) throws IndexerException, java.lang.InterruptedException
IndexerindexItems in interface Indexeritems - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionindexedProperties - the properties to indexIndexerException - if an error occurs during indexingjava.lang.InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.public void removeItemsByPk(java.util.Collection<PK> pks, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException, java.lang.InterruptedException
removeItemsByPk in interface Indexerpks - - list of pks to be removedfacetSearchConfig - - the facet search configurationindexedType - - the indexed typejava.lang.InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted status
of the current thread is cleared when this exception is thrown.IndexerExceptionpublic java.util.Collection<java.lang.String> removeItems(java.util.Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, java.lang.InterruptedException
IndexerremoveItems in interface Indexeritems - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionIndexerException - if an error occurs during indexingjava.lang.InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.protected void handleError(IndexConfig indexConfig, IndexedType indexedType, java.lang.String message, java.lang.Exception error) throws IndexerException
IndexerExceptionprotected IdentityProvider<ItemModel> getIdentityProvider(IndexedType indexedType)
protected Exporter getExporter(SolrServerMode serverMode) throws IndexerException
IndexerExceptionCopyright © 2018 SAP SE. All Rights Reserved.