public class DefaultIndexer extends Object implements Indexer, IndexSwappingCapableIndexer
Indexer.Indexer.CommitType| Constructor and Description |
|---|
DefaultIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index,
Indexer.CommitType commitType)
Deprecated.
Since 6.2.
|
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,
String message,
Exception error) |
Collection<SolrInputDocument> |
indexItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Method send items to indexer.
|
Collection<SolrInputDocument> |
indexItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Collection<IndexedProperty> indexedProperties)
Method send items to indexer.
|
void |
optimize(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index)
Deprecated.
Since 6.2.
|
void |
removeAllItems(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index)
Deprecated.
Since 6.2.
|
Collection<String> |
removeItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Remove from index all items by indexer identifiers.
|
void |
removeItemsByPk(Collection<PK> pks,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index) |
void |
removeItemsByQuery(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index,
String query)
Deprecated.
Since 6.2.
|
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setSolrDocumentFactory(SolrDocumentFactory solrDocumentFactory) |
void |
setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory) |
void |
swapIndexTypes(FacetSearchConfig facetSearchConfig,
IndexedType stagedIndexedType)
Deprecated.
Since 6.2.
|
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 Collection<SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, 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 indexingInterruptedException - 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 Collection<SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties) throws IndexerException, 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 indexingInterruptedException - 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(Collection<PK> pks, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException, InterruptedException
removeItemsByPk in interface Indexerpks - - list of pks to be removedfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeInterruptedException - 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 Collection<String> removeItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, 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 indexingInterruptedException - 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.@Deprecated public void removeAllItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException
IndexerremoveAllItems in interface IndexerfacetSearchConfig - facet search configurationindexedType - indexed type definitionindex - indexIndexerException@Deprecated public void removeItemsByQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, String query) throws IndexerException
IndexerremoveItemsByQuery in interface IndexerfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexquery - - the raw queryIndexerException@Deprecated public void commit(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, Indexer.CommitType commitType) throws IndexerException
Indexercommit in interface IndexerfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexcommitType - - the commit typeIndexerException - if an error occurs during the commit@Deprecated public void optimize(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException
Indexeroptimize in interface IndexerfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexIndexerException - if an error occurs during the commit@Deprecated public void swapIndexTypes(FacetSearchConfig facetSearchConfig, IndexedType stagedIndexedType) throws IndexerException
IndexSwappingCapableIndexersolrConfig.swapIndexTypes in interface IndexSwappingCapableIndexerfacetSearchConfig - - configuration of faset searchstagedIndexedType - - index type of the temporary, staged core nameIndexerExceptionprotected void handleError(IndexConfig indexConfig, IndexedType indexedType, String message, Exception error) throws IndexerException
IndexerExceptionprotected IdentityProvider<ItemModel> getIdentityProvider(IndexedType indexedType)
protected Exporter getExporter(SolrServerMode serverMode) throws IndexerException
IndexerExceptionCopyright © 2017 SAP SE. All Rights Reserved.