We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8481ab0 + 0af0025 commit feb7a67Copy full SHA for feb7a67
lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php
@@ -72,6 +72,15 @@ private function addFilterGroupToCollection(
72
if (!$isApplied) {
73
$condition = $filter->getConditionType() ? $filter->getConditionType() : 'eq';
74
$fields[] = $this->getFieldMapping($filter->getField());
75
+
76
+ if ($condition === 'fulltext') {
77
+ // NOTE: This is not a fulltext search, but the best way to search something when
78
+ // a SearchCriteria with "fulltext" condition is provided over a MySQL table
79
+ // (see https://github.com/magento-engcom/msi/issues/1221)
80
+ $condition = 'like';
81
+ $filter->setValue('%' . $filter->getValue() . '%');
82
+ }
83
84
$conditions[] = [$condition => $filter->getValue()];
85
}
86
0 commit comments