Class SearchShardIterator

    • Constructor Detail

      • SearchShardIterator

        public SearchShardIterator​(@Nullable
                                   java.lang.String clusterAlias,
                                   ShardId shardId,
                                   java.util.List<ShardRouting> shards,
                                   OriginalIndices originalIndices)
        Creates a PlainShardIterator instance that iterates over a subset of the given shards this the a given shardId.
        Parameters:
        clusterAlias - the alias of the cluster where the shard is located
        shardId - shard id of the group
        shards - shards to iterate
        originalIndices - the indices that the search request originally related to (before any rewriting happened)
    • Method Detail

      • getOriginalIndices

        public OriginalIndices getOriginalIndices()
        Returns the original indices associated with this shard iterator, specifically with the cluster that this shard belongs to.
      • getClusterAlias

        @Nullable
        public java.lang.String getClusterAlias()
        Returns the alias of the cluster where the shard is located.