private getMapping ( ) : Smile\ElasticsuiteCore\Api\Index\MappingInterface | ||
return | Smile\ElasticsuiteCore\Api\Index\MappingInterface |
private function getMapping()
{
if ($this->mapping === null) {
$defaultStore = $this->storeManager->getDefaultStoreView();
$index = $this->indexManager->getIndexByName($this->indexName, $defaultStore);
$this->mapping = $index->getType($this->typeName)->getMapping();
}
return $this->mapping;
}