public class RestMultiSearchAction extends BaseRestHandler
MULTI_ALLOW_EXPLICIT_INDEX, parseFieldMatcher
deprecationLogger, logger, settings
Constructor and Description |
---|
RestMultiSearchAction(Settings settings,
RestController controller,
Client client,
IndicesQueriesRegistry indicesQueriesRegistry,
AggregatorParsers aggParsers,
Suggesters suggesters) |
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(RestRequest request,
RestChannel channel,
Client client) |
static void |
parseMultiLineRequest(RestRequest request,
IndicesOptions indicesOptions,
boolean allowExplicitIndex,
java.util.function.BiConsumer<SearchRequest,BytesReference> consumer)
Parses a multi-line
RestRequest body, instanciating a SearchRequest for each line and applying the given consumer. |
static MultiSearchRequest |
parseRequest(RestRequest restRequest,
boolean allowExplicitIndex,
IndicesQueriesRegistry queriesRegistry,
ParseFieldMatcher parseFieldMatcher,
AggregatorParsers aggParsers,
Suggesters suggesters)
Parses a
RestRequest body and returns a MultiSearchRequest |
handleRequest
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTripCircuitBreaker
@Inject public RestMultiSearchAction(Settings settings, RestController controller, Client client, IndicesQueriesRegistry indicesQueriesRegistry, AggregatorParsers aggParsers, Suggesters suggesters)
public void handleRequest(RestRequest request, RestChannel channel, Client client) throws java.lang.Exception
handleRequest
in class BaseRestHandler
java.lang.Exception
public static MultiSearchRequest parseRequest(RestRequest restRequest, boolean allowExplicitIndex, IndicesQueriesRegistry queriesRegistry, ParseFieldMatcher parseFieldMatcher, AggregatorParsers aggParsers, Suggesters suggesters) 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,BytesReference> consumer) throws java.io.IOException
RestRequest
body, instanciating a SearchRequest
for each line and applying the given consumer.java.io.IOException