Class CountResponse

    • Constructor Detail

      • CountResponse

        public CountResponse​(long count,
                             java.lang.Boolean terminatedEarly,
                             CountResponse.ShardStats shardStats)
    • Method Detail

      • getCount

        public long getCount()
        Number of documents matching request.
      • getTotalShards

        public int getTotalShards()
        The total number of shards the search was executed on.
      • getSuccessfulShards

        public int getSuccessfulShards()
        The successful number of shards the search was executed on.
      • getSkippedShards

        public int getSkippedShards()
        The number of shards skipped due to pre-filtering
      • getFailedShards

        public int getFailedShards()
        The failed number of shards the search was executed on.
      • getShardFailures

        public ShardSearchFailure[] getShardFailures()
        The failures that occurred during the search.
      • fromXContent

        public static CountResponse fromXContent​(XContentParser parser)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isTerminatedEarly

        public java.lang.Boolean isTerminatedEarly()