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-catalog-search
Model
Adapter
Mysql
BaseSelectStrategy
BaseSelectFullTextSearchStrategy.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogSearch\Model\Adapter\Mysql\BaseSelectStrategy
;
8
9
use
Magento\CatalogSearch\Model\Search\BaseSelectStrategy\BaseSelectStrategyInterface
;
10
use
Magento\CatalogSearch\Model\Search\SelectContainer\SelectContainer
;
11
use
Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver
;
12
use
Magento\Framework\App\ResourceConnection
;
13
24
class
BaseSelectFullTextSearchStrategy
implements
BaseSelectStrategyInterface
25
{
29
private
$scopeResolver;
30
34
private
$resource;
35
40
public
function
__construct
(
41
ResourceConnection
$resource,
42
IndexScopeResolver
$scopeResolver
43
) {
44
$this->resource =
$resource
;
45
$this->scopeResolver = $scopeResolver;
46
}
47
55
public
function
createBaseSelect
(
SelectContainer
$selectContainer)
56
{
57
$select
= $this->resource->getConnection()->select();
58
59
$tableName
= $this->scopeResolver->resolve(
60
$selectContainer->
getUsedIndex
(),
61
$selectContainer->
getDimensions
()
62
);
63
64
$select
->from(
65
[
'search_index'
=>
$tableName
],
66
[
'entity_id'
=>
'entity_id'
]
67
)->joinInner(
68
[
'cea'
=> $this->resource->getTableName(
'catalog_eav_attribute'
)],
69
'search_index.attribute_id = cea.attribute_id'
,
70
[]
71
);
72
73
$selectContainer = $selectContainer->
updateSelect
(
$select
);
74
return
$selectContainer;
75
}
76
}
$tableName
$tableName
Definition:
trigger.php:13
Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver
Definition:
IndexScopeResolver.php:14
Magento\CatalogSearch\Model\Adapter\Mysql\BaseSelectStrategy
Definition:
BaseSelectAttributesSearchStrategyTest.php:7
Magento\CatalogSearch\Model\Search\SelectContainer\SelectContainer\getUsedIndex
getUsedIndex()
Definition:
SelectContainer.php:152
$resource
$resource
Definition:
bulk.php:12
Magento\CatalogSearch\Model\Adapter\Mysql\BaseSelectStrategy\BaseSelectFullTextSearchStrategy\createBaseSelect
createBaseSelect(SelectContainer $selectContainer)
Definition:
BaseSelectFullTextSearchStrategy.php:55
Magento\CatalogSearch\Model\Search\SelectContainer\SelectContainer\updateSelect
updateSelect(Select $select)
Definition:
SelectContainer.php:183
Magento\CatalogSearch\Model\Adapter\Mysql\BaseSelectStrategy\BaseSelectFullTextSearchStrategy
Definition:
BaseSelectFullTextSearchStrategy.php:24
Magento\CatalogSearch\Model\Search\BaseSelectStrategy\BaseSelectStrategyInterface
Definition:
BaseSelectStrategyInterface.php:16
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\CatalogSearch\Model\Adapter\Mysql\BaseSelectStrategy\BaseSelectFullTextSearchStrategy\__construct
__construct(ResourceConnection $resource, IndexScopeResolver $scopeResolver)
Definition:
BaseSelectFullTextSearchStrategy.php:40
Magento\CatalogSearch\Model\Search\SelectContainer\SelectContainer\getDimensions
getDimensions()
Definition:
SelectContainer.php:160
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\Framework\App\ResourceConnection
Magento\CatalogSearch\Model\Search\SelectContainer\SelectContainer
Definition:
SelectContainer.php:18