public class RestMultiSearchAction extends BaseRestHandler
BaseRestHandler.RestChannelConsumerMULTI_ALLOW_EXPLICIT_INDEXdeprecationLogger, logger, settings| Constructor and Description |
|---|
RestMultiSearchAction(Settings settings,
RestController controller) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
static void |
parseMultiLineRequest(RestRequest request,
IndicesOptions indicesOptions,
boolean allowExplicitIndex,
java.util.function.BiConsumer<SearchRequest,XContentParser> consumer)
Parses a multi-line
RestRequest body, instantiating a SearchRequest for each line and applying the given consumer. |
static MultiSearchRequest |
parseRequest(RestRequest restRequest,
boolean allowExplicitIndex)
Parses a
RestRequest body and returns a MultiSearchRequest |
BaseRestHandler.RestChannelConsumer |
prepareRequest(RestRequest request,
NodeClient client)
Prepare the request for execution.
|
protected java.util.Set<java.lang.String> |
responseParams()
Parameters used for controlling the response and thus might not be consumed during
preparation of the request execution in
BaseRestHandler.prepareRequest(RestRequest, NodeClient). |
boolean |
supportsContentStream()
Indicates if the RestHandler supports content as a stream.
|
getUsageCount, handleRequest, unrecognizedlogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanTripCircuitBreakerpublic RestMultiSearchAction(Settings settings, RestController controller)
public java.lang.String getName()
getName in class BaseRestHandlerRestNodesUsageAction.public BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws java.io.IOException
BaseRestHandlerBaseRestHandler.responseParams() to indicate such
params.prepareRequest in class BaseRestHandlerrequest - the request to executeclient - client for executing actions on the local nodejava.io.IOException - if an I/O exception occurred parsing the request and preparing for
executionpublic static MultiSearchRequest parseRequest(RestRequest restRequest, boolean allowExplicitIndex) throws java.io.IOException
RestRequest body and returns a MultiSearchRequestjava.io.IOExceptionpublic static void parseMultiLineRequest(RestRequest request, IndicesOptions indicesOptions, boolean allowExplicitIndex, java.util.function.BiConsumer<SearchRequest,XContentParser> consumer) throws java.io.IOException
RestRequest body, instantiating a SearchRequest for each line and applying the given consumer.java.io.IOExceptionpublic boolean supportsContentStream()
RestHandlerXContent.streamSeparator(). If a handler returns true this will affect the types of content that can be sent to
this endpoint.protected java.util.Set<java.lang.String> responseParams()
BaseRestHandlerBaseRestHandler.prepareRequest(RestRequest, NodeClient).responseParams in class BaseRestHandler