Package org.elasticsearch.action.search
Class ShardSearchFailure
java.lang.Object
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.search.ShardSearchFailure
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
public class ShardSearchFailure extends ShardOperationFailedException
Represents a failure to search on a specific shard.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description static ShardSearchFailure[]
EMPTY_ARRAY
-
Constructor Summary
Constructors Constructor Description ShardSearchFailure(java.lang.Exception e)
ShardSearchFailure(java.lang.Exception e, SearchShardTarget shardTarget)
-
Method Summary
Modifier and Type Method Description static ShardSearchFailure
fromXContent(XContentParser parser)
static ShardSearchFailure
readShardSearchFailure(StreamInput in)
SearchShardTarget
shard()
The search shard target the failure occurred on.java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, status
-
Field Details
-
Constructor Details
-
ShardSearchFailure
public ShardSearchFailure(java.lang.Exception e) -
ShardSearchFailure
-
-
Method Details
-
shard
The search shard target the failure occurred on. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
readShardSearchFailure
- Throws:
java.io.IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Throws:
java.io.IOException
-
fromXContent
- Throws:
java.io.IOException
-