public function create($storeId, $containerName)
    {
        $scopeCode = $this->getScopeCode($storeId, $containerName);

        if (!isset($this->cachedConfig[$scopeCode])) {
            $instanceConfiguration          = $this->loadConfiguration($scopeCode);
            $this->cachedConfig[$scopeCode] = $this->objectManager->create($this->instanceName, $instanceConfiguration);
        }

        return $this->cachedConfig[$scopeCode];
    }
public function create($storeId, $containerName)
    {
        $scopeCode = $this->getScopeCode($storeId, $containerName);

        if (!isset($this->cachedConfig[$scopeCode])) {
            $instanceConfiguration          = $this->loadConfiguration($scopeCode);
            $this->cachedConfig[$scopeCode] = $this->objectManager->create($this->instanceName, $instanceConfiguration);
        }

        return $this->cachedConfig[$scopeCode];
    }
public function create ( $ storeId , $ containerName ) { $ scopeCode = $ this -> getScopeCode ( $ storeId , $ containerName ) ; if ( ! isset ( $ this -> cachedConfig [ $ scopeCode ] ) ) { $ instanceConfiguration = $ this -> loadConfiguration ( $ scopeCode ) ; $ this -> cachedConfig [ $ scopeCode ] = $ this -> objectManager -> create ( $ this -> instanceName , $ instanceConfiguration ) ; } return $ this -> cachedConfig [ $ scopeCode ] ; }
Retrieve relevance configuration for a container.

@param int    $storeId       Store id.
@param string $containerName Container identifier.

@return \Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface
Retrieve relevance configuration for a container .