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
*/

0 commit comments

Comments
 (0)