Class ScriptRequestProcessor
java.lang.Object
org.opensearch.search.pipeline.AbstractProcessor
org.opensearch.search.pipeline.common.ScriptRequestProcessor
- All Implemented Interfaces:
Processor,SearchRequestProcessor,StatefulSearchRequestProcessor
public final class ScriptRequestProcessor
extends AbstractProcessor
implements StatefulSearchRequestProcessor
Processor that evaluates a script with a search request in its context
and then returns the modified search request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFactory class for creatingScriptRequestProcessor.Nested classes/interfaces inherited from interface org.opensearch.search.pipeline.Processor
Processor.PipelineContext, Processor.PipelineSource -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type of the processor.processRequest(SearchRequest request, PipelineProcessingContext requestContext) Methods inherited from class org.opensearch.search.pipeline.AbstractProcessor
getDescription, getTag, isIgnoreFailureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.search.pipeline.Processor
getDescription, getTag, isIgnoreFailureMethods inherited from interface org.opensearch.search.pipeline.SearchRequestProcessor
processRequestAsyncMethods inherited from interface org.opensearch.search.pipeline.StatefulSearchRequestProcessor
processRequest
-
Field Details
-
TYPE
Key to reference this processor type from a search pipeline.- See Also:
-
-
Method Details
-
processRequest
public SearchRequest processRequest(SearchRequest request, PipelineProcessingContext requestContext) throws Exception - Specified by:
processRequestin interfaceSearchRequestProcessor- Specified by:
processRequestin interfaceStatefulSearchRequestProcessor- Throws:
Exception
-
getType
Returns the type of the processor.
-