Class OptimizeModeListener
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.listeners.OptimizeModeListener
- All Implemented Interfaces:
IndexerListener
Listener that applies the optimize mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final OptimizeModeprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterIndex(IndexerContext context) Handles a notification that the indexing for a particularIndexerContexthas just been completed.voidafterIndexError(IndexerContext context) Handles a notification that the indexing for a particularIndexerContextfailed.voidbeforeIndex(IndexerContext context) Handles a notification that the indexing for a particularIndexerContextis about to begin.protected voidoptimize(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) protected OptimizeModeresolveOptimizeMode(FacetSearchConfig facetSearchConfig, Map<String, String> indexerHints) voidsetSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
-
Field Details
-
DEFAULT_OPTIMIZE_MODE
-
OPTIMIZE_MODE_HINT
- See Also:
-
-
Constructor Details
-
OptimizeModeListener
public OptimizeModeListener()
-
-
Method Details
-
beforeIndex
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContextis about to begin.- Specified by:
beforeIndexin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
afterIndex
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContexthas just been completed.- Specified by:
afterIndexin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
afterIndexError
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContextfailed.- Specified by:
afterIndexErrorin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
resolveOptimizeMode
protected OptimizeMode resolveOptimizeMode(FacetSearchConfig facetSearchConfig, Map<String, String> indexerHints) -
optimize
protected void optimize(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException - Throws:
IndexerException
-
setSolrSearchProviderFactory
-
getSolrSearchProviderFactory
-