Skip to content

Commit 2aebcfb

Browse files
committed
MAGETWO-95259: CatalogSearch module deprecation must be reverted
1 parent 2773aeb commit 2aebcfb

File tree

28 files changed

+141
-26
lines changed

28 files changed

+141
-26
lines changed

app/code/Magento/CatalogSearch/Block/Advanced/Form.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Advanced search form
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
11-
*/
127
namespace Magento\CatalogSearch\Block\Advanced;
138

149
use Magento\CatalogSearch\Model\Advanced;
@@ -21,6 +16,8 @@
2116
use Magento\Framework\View\Element\Template\Context;
2217

2318
/**
19+
* Advanced search form
20+
*
2421
* @api
2522
* @since 100.0.2
2623
*/
@@ -58,7 +55,7 @@ public function __construct(
5855
}
5956

6057
/**
61-
* @return AbstractBlock
58+
* @inheritdoc
6259
*/
6360
public function _prepareLayout()
6461
{
@@ -286,6 +283,8 @@ public function getAttributeYesNoElement($attribute)
286283
}
287284

288285
/**
286+
* Get select block.
287+
*
289288
* @return BlockInterface
290289
*/
291290
protected function _getSelectBlock()
@@ -299,6 +298,8 @@ protected function _getSelectBlock()
299298
}
300299

301300
/**
301+
* Get date block.
302+
*
302303
* @return BlockInterface|mixed
303304
*/
304305
protected function _getDateBlock()

app/code/Magento/CatalogSearch/Block/Advanced/Result.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(
6363
}
6464

6565
/**
66-
* @return AbstractBlock
66+
* @inheritdoc
6767
*/
6868
protected function _prepareLayout()
6969
{
@@ -125,6 +125,8 @@ public function setListModes()
125125
}
126126

127127
/**
128+
* Initialize list collection.
129+
*
128130
* @return void
129131
*/
130132
public function setListCollection()
@@ -133,6 +135,8 @@ public function setListCollection()
133135
}
134136

135137
/**
138+
* Get product collection.
139+
*
136140
* @return Collection
137141
*/
138142
protected function _getProductCollection()
@@ -141,6 +145,8 @@ protected function _getProductCollection()
141145
}
142146

143147
/**
148+
* Set search model.
149+
*
144150
* @return Advanced
145151
*/
146152
public function getSearchModel()
@@ -149,6 +155,8 @@ public function getSearchModel()
149155
}
150156

151157
/**
158+
* Get result count.
159+
*
152160
* @return mixed
153161
*/
154162
public function getResultCount()
@@ -161,6 +169,8 @@ public function getResultCount()
161169
}
162170

163171
/**
172+
* Get product list HTML.
173+
*
164174
* @return string
165175
*/
166176
public function getProductListHtml()
@@ -169,6 +179,8 @@ public function getProductListHtml()
169179
}
170180

171181
/**
182+
* Get form URL.
183+
*
172184
* @return string
173185
*/
174186
public function getFormUrl()
@@ -182,6 +194,8 @@ public function getFormUrl()
182194
}
183195

184196
/**
197+
* Get search criteria.
198+
*
185199
* @return array
186200
*/
187201
public function getSearchCriterias()

app/code/Magento/CatalogSearch/Controller/Advanced/Index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
use Magento\Framework\App\Action\HttpPostActionInterface;
1111
use Magento\Framework\Controller\ResultFactory;
1212

13+
/**
14+
* Advanced search controller.
15+
*/
1316
class Index extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface, HttpPostActionInterface
1417
{
1518
/**
16-
* @return \Magento\Framework\Controller\ResultInterface
19+
* @inheritdoc
1720
*/
1821
public function execute()
1922
{

app/code/Magento/CatalogSearch/Controller/Advanced/Result.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Framework\App\Action\HttpPostActionInterface;
1313
use Magento\Framework\UrlFactory;
1414

15+
/**
16+
* Advanced search result.
17+
*/
1518
class Result extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface, HttpPostActionInterface
1619
{
1720
/**
@@ -46,7 +49,7 @@ public function __construct(
4649
}
4750

4851
/**
49-
* @return \Magento\Framework\Controller\Result\Redirect
52+
* @inheritdoc
5053
*/
5154
public function execute()
5255
{

app/code/Magento/CatalogSearch/Controller/Result/Index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Magento\Search\Model\QueryFactory;
1616
use Magento\Search\Model\PopularSearchTerms;
1717

18+
/**
19+
* Search result.
20+
*/
1821
class Index extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface, HttpPostActionInterface
1922
{
2023
/**

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/Checker/Query/AdvancedSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($name)
2929
}
3030

3131
/**
32-
* {@inheritdoc}
32+
* @inheritdoc
3333
*/
3434
public function isApplicable(RequestInterface $request)
3535
{

app/code/Magento/CatalogSearch/Model/Adapter/Options.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Store\Model\ScopeInterface;
1111

1212
/**
13+
* Catalog search config.
14+
*
1315
* @api
1416
* @since 100.0.2
1517
*/
@@ -33,7 +35,7 @@ public function __construct(ScopeConfigInterface $scopeConfig)
3335
}
3436

3537
/**
36-
* {@inheritdoc}
38+
* @inheritdoc
3739
*/
3840
public function get()
3941
{

app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend/Engine.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\CatalogSearch\Model\Adminhtml\System\Config\Backend;
77

88
/**
9+
* Backend model for catalog search engine system config
10+
*
911
* @api
1012
* @since 100.0.2
1113
*/
@@ -42,6 +44,7 @@ public function __construct(
4244

4345
/**
4446
* After save call
47+
*
4548
* Invalidate catalog search index if engine was changed
4649
*
4750
* @return $this

app/code/Magento/CatalogSearch/Model/Advanced.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
/**
2424
* Catalog advanced search model
25+
*
2526
* @method int getEntityTypeId()
2627
* @method \Magento\CatalogSearch\Model\Advanced setEntityTypeId(int $value)
2728
* @method int getAttributeSetId()
@@ -296,6 +297,8 @@ public function prepareProductCollection($collection)
296297
}
297298

298299
/**
300+
* Add search criteria.
301+
*
299302
* @param EntityAttribute $attribute
300303
* @param mixed $value
301304
* @return void

app/code/Magento/CatalogSearch/Model/Attribute/SearchWeight.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
namespace Magento\CatalogSearch\Model\Attribute;
88

99
/**
10-
* This plugin is responsible for processing of search_weight property of a product attribute,
11-
* which is used to boost matches by specific attributes.
10+
* This plugin is responsible for processing of search_weight property of a product attribute.
11+
*
12+
* 'search_weight' is used to boost matches by specific attributes.
1213
*
1314
* This is part of search accuracy customization functionality.
1415
*/

app/code/Magento/CatalogSearch/Model/Autocomplete/DataProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Magento\Framework\App\Config\ScopeConfigInterface as ScopeConfig;
1414
use Magento\Store\Model\ScopeInterface;
1515

16+
/**
17+
* Catalog search auto-complete data provider.
18+
*/
1619
class DataProvider implements DataProviderInterface
1720
{
1821
/**
@@ -44,6 +47,7 @@ class DataProvider implements DataProviderInterface
4447
/**
4548
* @param QueryFactory $queryFactory
4649
* @param ItemFactory $itemFactory
50+
* @param ScopeConfig $scopeConfig
4751
*/
4852
public function __construct(
4953
QueryFactory $queryFactory,
@@ -60,7 +64,7 @@ public function __construct(
6064
}
6165

6266
/**
63-
* {@inheritdoc}
67+
* @inheritdoc
6468
*/
6569
public function getItems()
6670
{

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Magento\Store\Model\Store;
1313

1414
/**
15+
* Catalog search full test search data provider.
16+
*
1517
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1618
* @SuppressWarnings(PHPMD.TooManyFields)
1719
* @api

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin/Attribute.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\CatalogSearch\Model\Indexer\Fulltext;
99

10+
/**
11+
* Catalog search indexer plugin for catalog attribute.
12+
*/
1013
class Attribute extends AbstractPlugin
1114
{
1215
/**

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin/Category.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Magento\Catalog\Model\ResourceModel\Category as ResourceCategory;
1010
use Magento\Framework\Model\AbstractModel;
1111

12+
/**
13+
* Catalog search indexer plugin for catalog category.
14+
*/
1215
class Category extends AbstractPlugin
1316
{
1417
/**
@@ -26,6 +29,8 @@ public function aroundSave(ResourceCategory $resourceCategory, \Closure $proceed
2629
}
2730

2831
/**
32+
* Reindex catalog search.
33+
*
2934
* @param ResourceCategory $resourceCategory
3035
* @param \Closure $proceed
3136
* @param AbstractModel $category

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin/Product.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
use Magento\Catalog\Model\ResourceModel\Product as ResourceProduct;
1010
use Magento\Framework\Model\AbstractModel;
1111

12+
/**
13+
* Catalog search indexer plugin for catalog product.
14+
*/
1215
class Product extends AbstractPlugin
1316
{
1417
/**
18+
* Reindex on product save.
19+
*
1520
* @param ResourceProduct $productResource
1621
* @param \Closure $proceed
1722
* @param AbstractModel $product
@@ -38,6 +43,8 @@ public function aroundDelete(ResourceProduct $productResource, \Closure $proceed
3843
}
3944

4045
/**
46+
* Reindex catalog search.
47+
*
4148
* @param ResourceProduct $productResource
4249
* @param \Closure $proceed
4350
* @param AbstractModel $product

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Store.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Framework\Indexer\ConfigInterface;
1212
use Magento\Framework\Event\ObserverInterface;
1313

14+
/**
15+
* Catalog search indexer plugin for store.
16+
*/
1417
class Store implements ObserverInterface
1518
{
1619
/**
@@ -44,6 +47,8 @@ public function __construct(
4447
}
4548

4649
/**
50+
* Reindex catalog search.
51+
*
4752
* @param \Magento\Store\Model\Store $store
4853
* @return void
4954
*/
@@ -59,6 +64,8 @@ private function clearIndex(\Magento\Store\Model\Store $store)
5964
}
6065

6166
/**
67+
* Reindex catalog search on store modification.
68+
*
6269
* @param \Magento\Framework\Event\Observer $observer
6370
* @return void
6471
*/

app/code/Magento/CatalogSearch/Model/Indexer/IndexStructureFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Framework\Search\EngineResolverInterface;
1111

1212
/**
13+
* Index structure factory
14+
*
1315
* @api
1416
* @since 100.1.0
1517
*/

app/code/Magento/CatalogSearch/Model/Indexer/IndexerHandlerFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Framework\Search\EngineResolverInterface;
1111

1212
/**
13+
* Indexer handler factory.
14+
*
1315
* @api
1416
* @since 100.0.2
1517
*/

app/code/Magento/CatalogSearch/Model/Indexer/Mview/Action.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Magento\Framework\Mview\ActionInterface;
1010
use Magento\Framework\Indexer\IndexerInterfaceFactory;
1111

12+
/**
13+
* Catalog search materialized view index action.
14+
*/
1215
class Action implements ActionInterface
1316
{
1417
/**

0 commit comments

Comments
 (0)