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
Fulltext.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogSearch\Model
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Framework\Data\Collection\AbstractDb
as DbCollection;
10
use
Magento\Framework\Model\Context
;
11
use
Magento\Framework\Model\ResourceModel\AbstractResource
;
12
use
Magento\Framework\Registry
;
13
use
Magento\Search\Model\QueryFactory
;
14
28
class
Fulltext
extends
\Magento\Framework\Model\AbstractModel
29
{
35
protected
$queryFactory
=
null
;
36
42
protected
$_scopeConfig
;
43
53
public
function
__construct
(
54
Context
$context,
55
Registry
$registry
,
56
QueryFactory
$queryFactory
,
57
ScopeConfigInterface
$scopeConfig,
58
AbstractResource
$resource
=
null
,
59
DbCollection $resourceCollection =
null
,
60
array
$data
= []
61
) {
62
$this->queryFactory =
$queryFactory
;
63
$this->_scopeConfig = $scopeConfig;
64
parent::__construct($context,
$registry
,
$resource
, $resourceCollection,
$data
);
65
}
66
70
protected
function
_construct
()
71
{
72
$this->
_init
(\
Magento
\CatalogSearch\Model\
ResourceModel
\Fulltext::class);
73
}
74
82
public
function
resetSearchResults
()
83
{
84
$this->
getResource
()->resetSearchResults();
85
return
$this;
86
}
87
}
Magento\Framework\Model\AbstractModel
Definition:
AbstractModel.php:19
Magento\Framework\Model\AbstractModel\getResource
getResource()
Definition:
AbstractModel.php:891
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\CatalogSearch\Model\Fulltext\$_scopeConfig
$_scopeConfig
Definition:
Fulltext.php:42
Magento\CatalogSearch\Model
Magento\CatalogSearch\Model\Fulltext\resetSearchResults
resetSearchResults()
Definition:
Fulltext.php:82
$resource
$resource
Definition:
bulk.php:12
Magento\CatalogSearch\Model\Fulltext
Definition:
Fulltext.php:28
Magento\Framework\Model\Context
Definition:
Context.php:24
Magento\Framework\Data\Collection\AbstractDb
Definition:
AbstractDb.php:23
$registry
$registry
Definition:
bundle_product_with_not_visible_children_rollback.php:16
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\CatalogSearch\Model\Fulltext\_construct
_construct()
Definition:
Fulltext.php:70
Magento
Magento\Search\Model\QueryFactory
Definition:
QueryFactory.php:18
Magento\Framework\Registry
Definition:
Registry.php:18
Magento\CatalogSearch\Model\Fulltext\__construct
__construct(Context $context, Registry $registry, QueryFactory $queryFactory, ScopeConfigInterface $scopeConfig, AbstractResource $resource=null, DbCollection $resourceCollection=null, array $data=[])
Definition:
Fulltext.php:53
Magento\Framework\Model\ResourceModel\AbstractResource
Definition:
AbstractResource.php:19
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\CatalogSearch\Model\Fulltext\$queryFactory
$queryFactory
Definition:
Fulltext.php:35
Magento\Framework\Model\AbstractModel\_init
_init($resourceModel)
Definition:
AbstractModel.php:213