Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-elasticsearch
Model
ResourceModel
Engine.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Elasticsearch\Model\ResourceModel
;
7
8
use
Magento\CatalogSearch\Model\ResourceModel\EngineInterface
;
9
use
Magento\Catalog\Model\Product\Visibility
;
10
use
Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver
;
11
15
class
Engine
implements
EngineInterface
16
{
22
protected
$catalogProductVisibility
;
23
27
private
$indexScopeResolver;
28
35
public
function
__construct
(
36
Visibility
$catalogProductVisibility
,
37
IndexScopeResolver
$indexScopeResolver
38
) {
39
$this->catalogProductVisibility =
$catalogProductVisibility
;
40
$this->indexScopeResolver = $indexScopeResolver;
41
}
42
48
public
function
getAllowedVisibility
()
49
{
50
return
$this->catalogProductVisibility->getVisibleInSiteIds();
51
}
52
58
public
function
allowAdvancedIndex
()
59
{
60
return
false
;
61
}
62
66
public
function
processAttributeValue
(
$attribute
,
$value
)
67
{
68
return
$value
;
69
}
70
80
public
function
prepareEntityIndex
(
$index
, $separator =
' '
)
81
{
82
return
$index
;
83
}
84
88
public
function
isAvailable
()
89
{
90
return
true
;
91
}
92
}
Magento\Elasticsearch\Model\ResourceModel\Engine\allowAdvancedIndex
allowAdvancedIndex()
Definition:
Engine.php:58
Magento\Elasticsearch\Model\ResourceModel\Engine\processAttributeValue
processAttributeValue($attribute, $value)
Definition:
Engine.php:66
Magento\Elasticsearch\Model\ResourceModel\Engine\$catalogProductVisibility
$catalogProductVisibility
Definition:
Engine.php:22
Magento\Elasticsearch\Model\ResourceModel\Engine\isAvailable
isAvailable()
Definition:
Engine.php:88
$attribute
$attribute
Definition:
attribute_set_with_image_attribute.php:41
Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver
Definition:
IndexScopeResolver.php:14
Magento\CatalogSearch\Model\ResourceModel\EngineInterface
Definition:
EngineInterface.php:14
Magento\Elasticsearch\Model\ResourceModel\Engine\getAllowedVisibility
getAllowedVisibility()
Definition:
Engine.php:48
Magento\Elasticsearch\Model\ResourceModel\Engine\__construct
__construct(Visibility $catalogProductVisibility, IndexScopeResolver $indexScopeResolver)
Definition:
Engine.php:35
$value
$value
Definition:
gender.phtml:16
Magento\Elasticsearch\Model\ResourceModel\Engine
Definition:
Engine.php:15
Magento\Elasticsearch\Model\ResourceModel\Engine\prepareEntityIndex
prepareEntityIndex($index, $separator=' ')
Definition:
Engine.php:80
Magento\Catalog\Model\Product\Visibility
Definition:
Visibility.php:17
$index
$index
Definition:
list.phtml:44
Magento\Elasticsearch\Model\ResourceModel
Definition:
Engine.php:6