public class OptimizeModeListener extends Object implements IndexerListener
| Modifier and Type | Field and Description |
|---|---|
protected static OptimizeMode |
DEFAULT_OPTIMIZE_MODE |
protected static String |
OPTIMIZE_MODE_HINT |
| Constructor and Description |
|---|
OptimizeModeListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterIndex(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext has just been completed. |
void |
afterIndexError(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext failed. |
void |
beforeIndex(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext is about to begin. |
SolrSearchProviderFactory |
getSolrSearchProviderFactory() |
protected void |
optimize(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index) |
protected OptimizeMode |
resolveOptimizeMode(FacetSearchConfig facetSearchConfig,
Map<String,String> indexerHints) |
void |
setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory) |
protected static final OptimizeMode DEFAULT_OPTIMIZE_MODE
protected static final String OPTIMIZE_MODE_HINT
public void beforeIndex(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext is about to begin.beforeIndex in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occurspublic void afterIndex(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext has just been completed.afterIndex in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occurspublic void afterIndexError(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext failed.afterIndexError in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occursprotected OptimizeMode resolveOptimizeMode(FacetSearchConfig facetSearchConfig, Map<String,String> indexerHints)
protected void optimize(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException
IndexerExceptionpublic void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
public SolrSearchProviderFactory getSolrSearchProviderFactory()
Copyright © 2017 SAP SE. All Rights Reserved.