Class SearchTemplateResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.script.mustache.SearchTemplateResponse
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.StatusToXContentObject,org.elasticsearch.core.RefCounted,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class SearchTemplateResponse
extends org.elasticsearch.action.ActionResponse
implements org.elasticsearch.common.xcontent.StatusToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
org.elasticsearch.action.ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchTemplateResponsefromXContent(org.elasticsearch.xcontent.XContentParser parser) org.elasticsearch.action.search.SearchResponseorg.elasticsearch.common.bytes.BytesReferencebooleanvoidsetResponse(org.elasticsearch.action.search.SearchResponse searchResponse) voidsetSource(org.elasticsearch.common.bytes.BytesReference source) org.elasticsearch.rest.RestStatusstatus()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out) Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TEMPLATE_OUTPUT_FIELD
public static org.elasticsearch.xcontent.ParseField TEMPLATE_OUTPUT_FIELD
-
-
Method Details
-
getSource
public org.elasticsearch.common.bytes.BytesReference getSource() -
setSource
public void setSource(org.elasticsearch.common.bytes.BytesReference source) -
getResponse
public org.elasticsearch.action.search.SearchResponse getResponse() -
setResponse
public void setResponse(org.elasticsearch.action.search.SearchResponse searchResponse) -
hasResponse
public boolean hasResponse() -
toString
-
writeTo
- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
fromXContent
public static SearchTemplateResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
status
public org.elasticsearch.rest.RestStatus status()- Specified by:
statusin interfaceorg.elasticsearch.common.xcontent.StatusToXContentObject
-