public class RestMultiSearchAction extends BaseRestHandler
BaseRestHandler.RestChannelConsumer
MULTI_ALLOW_EXPLICIT_INDEX
deprecationLogger, logger, settings
Constructor and Description |
---|
RestMultiSearchAction(Settings settings,
RestController controller) |
Modifier and Type | Method and Description |
---|---|
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.
|
handleRequest, unrecognized
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTripCircuitBreaker, supportsPlainText
public RestMultiSearchAction(Settings settings, RestController controller)
public BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws java.io.IOException
BaseRestHandler
BaseRestHandler.responseParams()
to indicate such
params.prepareRequest
in class BaseRestHandler
request
- 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 MultiSearchRequest
java.io.IOException
public 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.IOException
public boolean supportsContentStream()
RestHandler
XContent.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()
BaseRestHandler
BaseRestHandler.prepareRequest(RestRequest, NodeClient)
.responseParams
in class BaseRestHandler