Skip to content

Commit d222a63

Browse files
committed
MC-18332: Remove MySQL Search Engine
- removing deprecated code
1 parent 90334f8 commit d222a63

File tree

142 files changed

+24
-15656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+24
-15656
lines changed

app/code/Magento/CatalogGraphQl/Model/Category/CategoryFilter.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Framework\Exception\InputException;
1414
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
1515
use Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplier\Filter;
16-
use Magento\Framework\Search\Adapter\Mysql\Query\Builder\Match;
1716
use Magento\Search\Model\Query;
1817
use Magento\Store\Api\Data\StoreInterface;
1918
use Magento\Store\Model\ScopeInterface;
@@ -24,6 +23,11 @@
2423
*/
2524
class CategoryFilter
2625
{
26+
/**
27+
* @var string
28+
*/
29+
private const SPECIAL_CHARACTERS = '-+~/\\<>\'":*$#@()!,.?`=%&^';
30+
2731
/**
2832
* @var ScopeConfigInterface
2933
*/
@@ -120,7 +124,7 @@ private function formatMatchFilters(array $filters, StoreInterface $store): arra
120124
foreach ($filters as $filter => $condition) {
121125
$conditionType = current(array_keys($condition));
122126
if ($conditionType === 'match') {
123-
$searchValue = trim(str_replace(Match::SPECIAL_CHARACTERS, '', $condition[$conditionType]));
127+
$searchValue = trim(str_replace(self::SPECIAL_CHARACTERS, '', $condition[$conditionType]));
124128
$matchLength = strlen($searchValue);
125129
if ($matchLength < $minQueryLength) {
126130
throw new InputException(__('Invalid match filter. Minimum length is %1.', $minQueryLength));

app/code/Magento/CatalogGraphQl/Model/Search/Adapter/Mysql/Query/Builder/Match.php

Lines changed: 0 additions & 78 deletions
This file was deleted.

app/code/Magento/CatalogGraphQl/etc/graphql/di.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@
9191
</argument>
9292
</arguments>
9393
</virtualType>
94-
<preference for="Magento\Framework\Search\Adapter\Mysql\Query\Builder\Match"
95-
type="Magento\CatalogGraphQl\Model\Search\Adapter\Mysql\Query\Builder\Match" />
9694
<type name="Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider">
9795
<arguments>
9896
<argument name="extendedConfigData" xsi:type="array">

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider.php

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)