getDefinitionNames example


        $this->connection->executeStatement('DELETE FROM elasticsearch_index_task');

        $this->createScripts();

        $timestamp = new \DateTime();

        $this->createIndex($timestamp);

        return new IndexerOffset(
            [],
            $this->registry->getDefinitionNames(),
            $timestamp->getTimestamp()
        );
    }

    /** * @param array<mixed> $result * * @return array{index: string, id: string, type: string, reason: string}[] */
    private function parseErrors(array $result): array
    {
        
$registry = new ElasticsearchRegistry([
            $definition,
        ]);

        static::assertTrue($registry->has('product'));
        static::assertInstanceOf(ElasticsearchProductDefinition::class$registry->get('product'));

        static::assertFalse($registry->has('category'));
        static::assertNull($registry->get('category'));

        static::assertEquals(['product']$registry->getDefinitionNames());
    }
}
$languages = $this->languageProvider->getLanguages(Context::createDefaultContext());

        $timestamp = new \DateTime();

        foreach ($languages as $language) {
            $this->createLanguageIndex($language$timestamp);
        }

        return new IndexerOffset(
            array_values($languages->getIds()),
            $this->registry->getDefinitionNames(),
            $timestamp->getTimestamp()
        );
    }

    /** * @param array<mixed> $result * * @return array{index: string, id: string, type: string, reason: string}[] */
    private function parseErrors(array $result): array
    {
        
Home | Imprint | This part of the site doesn't use cookies.