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(
7272 if (!$ isApplied ) {
7373 $ condition = $ filter ->getConditionType () ? $ filter ->getConditionType () : 'eq ' ;
7474 $ 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+
7584 $ conditions [] = [$ condition => $ filter ->getValue ()];
7685 }
7786 }
You can’t perform that action at this time.
0 commit comments