code: private function configureIndexingDepth(ContainerBuilder $container, $connectionName, $connectionParams)
      {
          $alias = $this->getAlias();
  
          $defaultIndexingDepthId = "{$alias}.connection.{$connectionName}.indexing_depth.default";
          $contentTypeIndexingDepthMapId = "{$alias}.connection.{$connectionName}.indexing_depth.map";
  
          $container->setParameter($defaultIndexingDepthId, $connectionParams['indexing_depth']['default']);
          $container->setParameter($contentTypeIndexingDepthMapId, $connectionParams['indexing_depth']['content_type']);
      }
docs: Creates indexing depth map parameter for a given $connectionName.
  
  @param ContainerBuilder $container
  @param string $connectionName
  @param array $connectionParams