ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Model\Indexer\Structure\DynamicTemplate;
|
||||
|
||||
class CategoryPosition
|
||||
{
|
||||
/**
|
||||
* @param $storeId
|
||||
* @return array
|
||||
*/
|
||||
public function map($storeId)
|
||||
{
|
||||
return [
|
||||
'match' => 'category_position_*',
|
||||
'match_mapping_type' => 'string',
|
||||
'mapping' => [
|
||||
'type' => 'integer',
|
||||
'index' => true,
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user