Class OversampleRequestProcessor
java.lang.Object
org.opensearch.search.pipeline.AbstractProcessor
org.opensearch.search.pipeline.common.OversampleRequestProcessor
- All Implemented Interfaces:
Processor,SearchRequestProcessor,StatefulSearchRequestProcessor
public class OversampleRequestProcessor
extends AbstractProcessor
implements StatefulSearchRequestProcessor
Multiplies the "size" parameter on the
SearchRequest by the given scaling factor, storing the original value
in the request context as "original_size".-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.search.pipeline.Processor
Processor.PipelineContext, Processor.PipelineSource -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetType()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) - Specified by:
processRequestin interfaceSearchRequestProcessor- Specified by:
processRequestin interfaceStatefulSearchRequestProcessor
-
getType
-