Class SearchPhaseResult

    • Field Detail

      • requestId

        protected long requestId
    • Constructor Detail

      • SearchPhaseResult

        protected SearchPhaseResult()
      • SearchPhaseResult

        protected SearchPhaseResult​(StreamInput in)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getRequestId

        public long getRequestId()
        Returns the results request ID that is used to reference the search context on the executing node
      • getShardIndex

        public int getShardIndex()
        Returns the shard index in the context of the currently executing search request that is used for accounting on the coordinating node
      • setSearchShardTarget

        public void setSearchShardTarget​(SearchShardTarget shardTarget)
      • setShardIndex

        public void setShardIndex​(int shardIndex)
      • queryResult

        public QuerySearchResult queryResult()
        Returns the query result iff it's included in this response otherwise null
      • fetchResult

        public FetchSearchResult fetchResult()
        Returns the fetch result iff it's included in this response otherwise null
      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Description copied from interface: Writeable
        Write this into the StreamOutput.
        Throws:
        java.io.IOException