createMapping example



    /** * @return void */
    public function index(ProgressHelperInterface $helper)
    {
        foreach ($this->repositories as $repository) {
            $index = $this->indexFactory->createIndexConfiguration($repository->getDomainName());

            $this->createIndex($index);
            $this->createMapping($repository$index->getName());
            $this->populateEntity($index->getName()$repository$helper);
            $this->createAlias($index->getName()$index->getAlias());
        }
    }

    /** * @param string $index * @param array<int> $ids * * @return void */
    
Home | Imprint | This part of the site doesn't use cookies.