ltsecurityinc安防产品在线商城代码
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data\Indexer\Data;
|
||||
|
||||
interface DataMapperInterface
|
||||
{
|
||||
public const ENTITY_ID_FIELD_NAME = 'entity_id';
|
||||
|
||||
/**
|
||||
* @since 1.17.1 introduced mapped data in $context['documents']
|
||||
*
|
||||
* @param array $indexData
|
||||
* @param int $storeId
|
||||
* @param array{ 'indexer_id': string, 'document': array{int: array|string|int} } $context
|
||||
* @return array
|
||||
*/
|
||||
public function map(array $indexData, $storeId, array $context = []);
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data\Indexer\Data;
|
||||
|
||||
interface DataMapperResolverInterface
|
||||
{
|
||||
/**
|
||||
* @param int $entityId
|
||||
* @param array $indexData
|
||||
* @param int $storeId
|
||||
* @param array $context
|
||||
* @return array
|
||||
*/
|
||||
public function mapEntityData(array $indexData, $storeId, $context = []);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
|
||||
|
||||
interface AnalyzerBuilderInterface
|
||||
{
|
||||
/**
|
||||
* @param int $storeId
|
||||
* @return array
|
||||
*/
|
||||
public function build($storeId);
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
|
||||
|
||||
interface EntityBuilderInterface
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function buildEntityFields();
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Api\Data\Indexer\Structure;
|
||||
|
||||
interface IndexBuilderInterface
|
||||
{
|
||||
public const MAX_RESULT_COUNT = 1000000;
|
||||
public const MAX_FIELDS_COUNT = 1000000;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function build();
|
||||
|
||||
/**
|
||||
* @param int $storeId
|
||||
* @return \Amasty\ElasticSearch\Api\Data\Indexer\Structure\IndexBuilderInterface;
|
||||
*/
|
||||
public function setStoreId($storeId);
|
||||
}
|
||||
Reference in New Issue
Block a user