Class ShardSearchFailure

org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.search.ShardSearchFailure
All Implemented Interfaces:
, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class ShardSearchFailure extends ShardOperationFailedException
Represents a failure to search on a specific shard.
See Also:
Serialized Form
  • 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

    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
     

    Fields inherited from class org.elasticsearch.action.ShardOperationFailedException

    cause, index, reason, shardId, status

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
     e)
     
     e, SearchShardTarget shardTarget)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
     
     
    The search shard target the failure occurred on.
     
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    void
    Write this into the StreamOutput.

    Methods inherited from class org.elasticsearch.action.ShardOperationFailedException

    getCause, index, reason, shardId, status

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from class java.lang.

    , , , , , , , , ,

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject

    isFragment
  • Field Details

  • Constructor Details

    • ShardSearchFailure

      public ShardSearchFailure( e)
    • ShardSearchFailure

      public ShardSearchFailure( e, @Nullable SearchShardTarget shardTarget)
  • Method Details

    • shard

      @Nullable public SearchShardTarget shard()
      The search shard target the failure occurred on.
    • toString

      public  toString()
      Overrides:
       in class 
    • readShardSearchFailure

      public static ShardSearchFailure readShardSearchFailure(StreamInput in) throws
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Throws:
    • fromXContent

      public static ShardSearchFailure fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws
      Throws: