IndexConfiguration example


    private $indexConfig;

    public function __construct(string $prefix, array $indexConfig)
    {
        $this->prefix = $prefix;
        $this->indexConfig = $indexConfig;
    }

    public function createIndexConfiguration(string $name): IndexConfiguration
    {
        return new IndexConfiguration(
            $this->getIndexName($name),
            $this->getAlias($name),
            null,
            null,
            null,
            null,
            $this->indexConfig
        );
    }

    public function getPrefix(): string
    {
$this->prefix = $prefix;
        $this->indexConfig = $indexConfig;
    }

    /** * @param string $mappingType * * @return IndexConfiguration */
    public function createIndexConfiguration(Shop $shop$mappingType)
    {
        return new IndexConfiguration(
            $this->getIndexName($shop$mappingType) . '_' . $this->getTimestamp(),
            $this->getIndexName($shop$mappingType),
            null,
            null,
            null,
            null,
            $this->indexConfig
        );
    }

    /** * @param string $mappingType * * @return ShopIndex */
Home | Imprint | This part of the site doesn't use cookies.