Package org.opensearch.script.mustache
Class SearchTemplateRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.script.mustache.SearchTemplateRequest
- All Implemented Interfaces:
CompositeIndicesRequest,IndicesRequest,IndicesRequest.Replaceable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject,TaskAwareRequest
public class SearchTemplateRequest
extends ActionRequest
implements IndicesRequest.Replaceable, CompositeIndicesRequest, org.opensearch.core.xcontent.ToXContentObject
A request to execute a search based on a search template.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.opensearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V extends Object>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V extends Object> -
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSearchTemplateRequest(SearchRequest searchRequest) SearchTemplateRequest(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SearchTemplateRequestfromXContent(org.opensearch.core.xcontent.XContentParser parser) inthashCode()String[]indices()booleanbooleanbooleanvoidsetExplain(boolean explain) voidsetProfile(boolean profile) voidsetRequest(SearchRequest request) voidvoidsetScriptParams(Map<String, Object> scriptParams) voidsetScriptType(ScriptType scriptType) voidsetSimulate(boolean simulate) org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) validate()voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.action.IndicesRequest
includeDataStreamsMethods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTaskMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
SearchTemplateRequest
public SearchTemplateRequest() -
SearchTemplateRequest
public SearchTemplateRequest(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
SearchTemplateRequest
-
-
Method Details
-
setRequest
-
getRequest
-
equals
-
hashCode
public int hashCode() -
isSimulate
public boolean isSimulate() -
setSimulate
public void setSimulate(boolean simulate) -
isExplain
public boolean isExplain() -
setExplain
public void setExplain(boolean explain) -
isProfile
public boolean isProfile() -
setProfile
public void setProfile(boolean profile) -
getScriptType
-
setScriptType
-
getScript
-
setScript
-
getScriptParams
-
setScriptParams
-
validate
- Specified by:
validatein classActionRequest
-
fromXContent
public static SearchTemplateRequest fromXContent(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
indices
- Specified by:
indicesin interfaceIndicesRequest
-
indicesOptions
- Specified by:
indicesOptionsin interfaceIndicesRequest
-
indices
- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-