Class AbstractSnSearchProvider<T extends AbstractSnSearchProviderConfiguration>
- java.lang.Object
-
- de.hybris.platform.searchservices.spi.service.impl.AbstractSnSearchProvider<T>
-
- All Implemented Interfaces:
SnSearchProvider<T>
- Direct Known Subclasses:
CSSearchSnSearchProvider
public abstract class AbstractSnSearchProvider<T extends AbstractSnSearchProviderConfiguration> extends java.lang.Object implements SnSearchProvider<T>
Base class for search providers.
-
-
Constructor Summary
Constructors Constructor Description AbstractSnSearchProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateIndex(SnContext context, java.lang.String indexId)Creates an index (if it does not exist).voidexportConfiguration(SnContext context)Exports the configuration to the search provider.TgetSearchProviderConfiguration(SnIndexConfiguration indexConfiguration)Returns the search provider configuration.TgetSearchProviderConfiguration(SnContext context)Returns the search provider configuration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.searchservices.spi.service.SnSearchProvider
commit, createIndex, createIndexerOperation, deleteIndex, executeDocumentBatch, exportConfiguration, search, suggest, updateIndexerOperationStatus
-
-
-
-
Method Detail
-
getSearchProviderConfiguration
public T getSearchProviderConfiguration(SnIndexConfiguration indexConfiguration) throws SnException
Description copied from interface:SnSearchProviderReturns the search provider configuration.- Specified by:
getSearchProviderConfigurationin interfaceSnSearchProvider<T extends AbstractSnSearchProviderConfiguration>- Parameters:
indexConfiguration- - the index configuration- Returns:
- the search provider configuration
- Throws:
SnException- if an error occurs
-
getSearchProviderConfiguration
public T getSearchProviderConfiguration(SnContext context)
Description copied from interface:SnSearchProviderReturns the search provider configuration.- Specified by:
getSearchProviderConfigurationin interfaceSnSearchProvider<T extends AbstractSnSearchProviderConfiguration>- Returns:
- the search provider configuration
-
exportConfiguration
public void exportConfiguration(SnContext context) throws SnException
Description copied from interface:SnSearchProviderExports the configuration to the search provider.- Specified by:
exportConfigurationin interfaceSnSearchProvider<T extends AbstractSnSearchProviderConfiguration>- Parameters:
context- - the context- Throws:
SnException- if an error occurs
-
createIndex
public void createIndex(SnContext context, java.lang.String indexId) throws SnException
Description copied from interface:SnSearchProviderCreates an index (if it does not exist).- Specified by:
createIndexin interfaceSnSearchProvider<T extends AbstractSnSearchProviderConfiguration>- Parameters:
context- - the contextindexId- - the index id- Throws:
SnException- if an error occurs
-
-