Class SearchPipelineCommonModulePlugin
java.lang.Object
org.opensearch.plugins.Plugin
org.opensearch.search.pipeline.common.SearchPipelineCommonModulePlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,SearchPipelinePlugin
Plugin providing common search request/response processors for use in search pipelines.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.plugins.SearchPipelinePlugin
SearchPipelinePlugin.Parameters -
Constructor Summary
ConstructorsConstructorDescriptionNo constructor needed, but build complains if we don't have a constructor with JavaDoc. -
Method Summary
Modifier and TypeMethodDescriptiongetRequestProcessors(SearchPipelinePlugin.Parameters parameters) Returns a map of processor factories.getResponseProcessors(SearchPipelinePlugin.Parameters parameters) Methods inherited from class org.opensearch.plugins.Plugin
additionalSettings, close, createComponents, createGuiceModules, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettings, getSettingsFilter, getSettingUpgraders, onIndexModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.plugins.SearchPipelinePlugin
getSearchPhaseResultsProcessors
-
Constructor Details
-
SearchPipelineCommonModulePlugin
public SearchPipelineCommonModulePlugin()No constructor needed, but build complains if we don't have a constructor with JavaDoc.
-
-
Method Details
-
getRequestProcessors
public Map<String,Processor.Factory<SearchRequestProcessor>> getRequestProcessors(SearchPipelinePlugin.Parameters parameters) Returns a map of processor factories.- Specified by:
getRequestProcessorsin interfaceSearchPipelinePlugin- Parameters:
parameters- The parameters required for creating the processor factories.- Returns:
- A map of processor factories, where the keys are the processor types and the values are the corresponding factory instances.
-
getResponseProcessors
public Map<String,Processor.Factory<SearchResponseProcessor>> getResponseProcessors(SearchPipelinePlugin.Parameters parameters) - Specified by:
getResponseProcessorsin interfaceSearchPipelinePlugin
-