File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,15 @@ private function addFilterGroupToCollection(
72
72
if (!$ isApplied ) {
73
73
$ condition = $ filter ->getConditionType () ? $ filter ->getConditionType () : 'eq ' ;
74
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
+
75
84
$ conditions [] = [$ condition => $ filter ->getValue ()];
76
85
}
77
86
}
You can’t perform that action at this time.
0 commit comments