When i search "cocacola" product it search 1 product which is "cocacola" but when i search "cola" then no product found. i want search "cola" and it should a product but right now no product found. i want use %like% condition.
I Want to add this functionality in header Search.
View Example
In Magento 1 Search work like https://app.hyfy.io/v/abfCoSnOT5n/
In Mahento 2 Search work like https://app.hyfy.io/v/ab3EtzbNT5n/
So Magento 2 Search Not Working Like Magento 1.
Best Answer
source : https://alanstorm.com/magento_2_understanding_object_repositories/
I think you are looking for something like this :
Verbose way :
Less verbose :
You can find all the condition type here :
vendor/magento/framework/Api/CriteriaInterface.php