Class SearchTemplateRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.script.mustache.SearchTemplateRequest
-
- All Implemented Interfaces:
org.elasticsearch.action.CompositeIndicesRequest,org.elasticsearch.common.io.stream.Streamable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject,org.elasticsearch.tasks.TaskAwareRequest
public class SearchTemplateRequest extends org.elasticsearch.action.ActionRequest implements org.elasticsearch.action.CompositeIndicesRequest, org.elasticsearch.common.xcontent.ToXContentObjectA request to execute a search based on a search template.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
-
Constructor Summary
Constructors Constructor Description SearchTemplateRequest()SearchTemplateRequest(org.elasticsearch.action.search.SearchRequest searchRequest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static SearchTemplateRequestfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)org.elasticsearch.action.search.SearchRequestgetRequest()java.lang.StringgetScript()java.util.Map<java.lang.String,java.lang.Object>getScriptParams()org.elasticsearch.script.ScriptTypegetScriptType()inthashCode()booleanisExplain()booleanisProfile()booleanisSimulate()voidreadFrom(org.elasticsearch.common.io.stream.StreamInput in)voidsetExplain(boolean explain)voidsetProfile(boolean profile)voidsetRequest(org.elasticsearch.action.search.SearchRequest request)voidsetScript(java.lang.String script)voidsetScriptParams(java.util.Map<java.lang.String,java.lang.Object> scriptParams)voidsetScriptType(org.elasticsearch.script.ScriptType scriptType)voidsetSimulate(boolean simulate)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)org.elasticsearch.action.ActionRequestValidationExceptionvalidate()voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Method Detail
-
setRequest
public void setRequest(org.elasticsearch.action.search.SearchRequest request)
-
getRequest
public org.elasticsearch.action.search.SearchRequest getRequest()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
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
public org.elasticsearch.script.ScriptType getScriptType()
-
setScriptType
public void setScriptType(org.elasticsearch.script.ScriptType scriptType)
-
getScript
public java.lang.String getScript()
-
setScript
public void setScript(java.lang.String script)
-
getScriptParams
public java.util.Map<java.lang.String,java.lang.Object> getScriptParams()
-
setScriptParams
public void setScriptParams(java.util.Map<java.lang.String,java.lang.Object> scriptParams)
-
validate
public org.elasticsearch.action.ActionRequestValidationException validate()
- Specified by:
validatein classorg.elasticsearch.action.ActionRequest
-
fromXContent
public static SearchTemplateRequest fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
readFrom
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException- Specified by:
readFromin interfaceorg.elasticsearch.common.io.stream.Streamable- Overrides:
readFromin classorg.elasticsearch.action.ActionRequest- Throws:
java.io.IOException
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Streamable- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Overrides:
writeToin classorg.elasticsearch.action.ActionRequest- Throws:
java.io.IOException
-
-