code: @Override
    protected TermsByQueryShardRequest newShardRequest(int numShards, ShardRouting shard, TermsByQueryRequest request) {
      String[] filteringAliases = indexNameExpressionResolver.filteringAliases(clusterService.state(), shard.index(), request.indices());
      return new TermsByQueryShardRequest(shard.shardId(), filteringAliases, request);
    }
docs: Creates a new {@link TermsByQueryShardRequest}