Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Fulltext.php
Go to the documentation of this file.
1 <?php
7 
14 
29 {
35  protected $queryFactory = null;
36 
42  protected $_scopeConfig;
43 
53  public function __construct(
54  Context $context,
57  ScopeConfigInterface $scopeConfig,
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 }
$resource
Definition: bulk.php:12
__construct(Context $context, Registry $registry, QueryFactory $queryFactory, ScopeConfigInterface $scopeConfig, AbstractResource $resource=null, DbCollection $resourceCollection=null, array $data=[])
Definition: Fulltext.php:53