Class MsearchTemplateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.MsearchTemplateRequest
- All Implemented Interfaces:
JsonpSerializable,NdJsonpSerializable
public class MsearchTemplateRequest extends RequestBase implements NdJsonpSerializable, JsonpSerializable
Runs multiple templated
searches with a single request.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMsearchTemplateRequest.BuilderBuilder forMsearchTemplateRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static SimpleEndpoint<MsearchTemplateRequest,?>_ENDPOINTEndpoint "msearch_template". -
Method Summary
Modifier and Type Method Description java.util.Iterator<?>_serializables()java.lang.BooleanccsMinimizeRoundtrips()Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionstatic <TDocument>
Endpoint<MsearchTemplateRequest,MsearchTemplateResponse<TDocument>,ErrorResponse>createMsearchTemplateEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "msearch_template" endpoint.java.util.List<java.lang.String>index()A comma-separated list of index names to use as defaultjava.lang.LongmaxConcurrentSearches()Controls the maximum number of concurrent searches the multi search api will executestatic MsearchTemplateRequestof(java.util.function.Function<MsearchTemplateRequest.Builder,ObjectBuilder<MsearchTemplateRequest>> fn)java.util.List<RequestItem>searchTemplates()Required - Request body.SearchTypesearchType()Search operation typevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this value to JSON.java.util.List<java.lang.String>type()A comma-separated list of document types to use as defaultMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
Endpoint "msearch_template".
-
-
Method Details
-
of
public static MsearchTemplateRequest of(java.util.function.Function<MsearchTemplateRequest.Builder,ObjectBuilder<MsearchTemplateRequest>> fn) -
_serializables
public java.util.Iterator<?> _serializables()- Specified by:
_serializablesin interfaceNdJsonpSerializable
-
ccsMinimizeRoundtrips
@Nullable public final java.lang.Boolean ccsMinimizeRoundtrips()Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionAPI name:
ccs_minimize_roundtrips -
index
public final java.util.List<java.lang.String> index()A comma-separated list of index names to use as defaultAPI name:
index -
maxConcurrentSearches
@Nullable public final java.lang.Long maxConcurrentSearches()Controls the maximum number of concurrent searches the multi search api will executeAPI name:
max_concurrent_searches -
searchType
Search operation typeAPI name:
search_type -
type
public final java.util.List<java.lang.String> type()A comma-separated list of document types to use as defaultAPI name:
type -
searchTemplates
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createMsearchTemplateEndpoint
public static <TDocument> Endpoint<MsearchTemplateRequest,MsearchTemplateResponse<TDocument>,ErrorResponse> createMsearchTemplateEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "msearch_template" endpoint.
-