Skip to content

Commit 2d22b20

Browse files
committed
MAGETWO-95259: CatalogSearch module deprecation must be reverted
- Removed deprecation of the classes necessary for the work of ElasticSearch (or any other search adapter)
1 parent 778be58 commit 2d22b20

File tree

22 files changed

+35
-69
lines changed

22 files changed

+35
-69
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @api
2020
* @since 100.0.2
21-
* @deprecated
22-
* @see \Magento\ElasticSearch
2321
*/
2422
class Result extends Template
2523
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/AggregationResolver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
use Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection as AttributeCollection;
1616

1717
/**
18-
* @deprecated
19-
* @see \Magento\ElasticSearch
18+
* Aggregation resolver.
2019
*/
2120
class AggregationResolver implements AggregationResolverInterface
2221
{
@@ -79,7 +78,7 @@ public function __construct(
7978
}
8079

8180
/**
82-
* {@inheritdoc}
81+
* @inheritdoc
8382
*/
8483
public function resolve(RequestInterface $request, array $documentIds)
8584
{

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* Request checker for catalog view.
1818
*
1919
* Checks catalog view query whether required to collect all attributes for entity.
20-
* @deprecated
21-
* @see \Magento\ElasticSearch
2220
*/
2321
class CatalogView implements RequestCheckerInterface
2422
{
@@ -53,7 +51,7 @@ public function __construct(
5351
}
5452

5553
/**
56-
* {@inheritdoc}
54+
* @inheritdoc
5755
*/
5856
public function isApplicable(RequestInterface $request)
5957
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerComposite.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
use Magento\Store\Model\StoreManagerInterface;
1111

1212
/**
13-
* @deprecated
14-
* @see \Magento\ElasticSearch
13+
* Composite request checker.
1514
*/
1615
class RequestCheckerComposite implements RequestCheckerInterface
1716
{
@@ -57,7 +56,7 @@ public function __construct(
5756
}
5857

5958
/**
60-
* {@inheritdoc}
59+
* @inheritdoc
6160
*/
6261
public function isApplicable(RequestInterface $request)
6362
{

app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php

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

1010
/**
1111
* RequestCheckerInterface provides the interface to work with query checkers.
12-
*
13-
* @deprecated
14-
* @see \Magento\ElasticSearch
1512
*/
1613
interface RequestCheckerInterface
1714
{

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4444
* @api
4545
* @since 100.0.2
46-
* @deprecated
47-
* @see \Magento\ElasticSearch
4846
*/
4947
class Advanced extends \Magento\Framework\Model\AbstractModel
5048
{

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
use Magento\Framework\Search\Request\Builder as RequestBuilder;
99

1010
/**
11+
* Catalog search advanced request builder.
12+
*
1113
* @api
1214
* @since 100.0.2
13-
* @deprecated
14-
* @see \Magento\ElasticSearch
1515
*/
1616
class Builder extends RequestBuilder
1717
{
1818
/**
19+
* Bind value to query.
20+
*
1921
* @param string $attributeCode
2022
* @param array|string $attributeValue
2123
* @return void

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2323
* @api
2424
* @since 100.0.2
25-
*
26-
* @deprecated
27-
* @see \Magento\ElasticSearch
2825
*/
2926
class Full
3027
{

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class Action extends AbstractIndexerPlugin
2424
* @return ProductAction
2525
*
2626
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
27-
* @deprecated
28-
* @see ElasticSearch module is default search engine starting from 2.3. CatalogSearch would be removed in 2.4
2927
*/
3028
public function afterUpdateAttributes(
3129
ProductAction $subject,

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
use Magento\Framework\Search\Request\IndexScopeResolverInterface;
1616

1717
/**
18+
* Catalog search index structure.
19+
*
1820
* @api
1921
* @since 100.0.2
20-
* @deprecated
21-
* @see \Magento\ElasticSearch
2222
*/
2323
class IndexStructure implements IndexStructureInterface
2424
{
@@ -45,9 +45,7 @@ public function __construct(
4545
}
4646

4747
/**
48-
* @param string $index
49-
* @param Dimension[] $dimensions
50-
* @return void
48+
* @inheritdoc
5149
*/
5250
public function delete($index, array $dimensions = [])
5351
{
@@ -58,18 +56,16 @@ public function delete($index, array $dimensions = [])
5856
}
5957

6058
/**
61-
* @param string $index
62-
* @param array $fields
63-
* @param array $dimensions
64-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
65-
* @return void
59+
* @inheritdoc
6660
*/
6761
public function create($index, array $fields, array $dimensions = [])
6862
{
6963
$this->createFulltextIndex($this->indexScopeResolver->resolve($index, $dimensions));
7064
}
7165

7266
/**
67+
* Create fulltext index table.
68+
*
7369
* @param string $tableName
7470
* @throws \Zend_Db_Exception
7571
* @return void

0 commit comments

Comments
 (0)