I want to filter with Free Text that mean user can type anything they want to filter. So, when user type in side the input as I put below. So, I want to filter them by following this logic.
Free text = "abc def,ghi jkl"
...
AND
(
(report.name like '%abc%' AND report.name like '%def%')
OR
(bom_functions.name like '%abc%' AND bom_functions.name like '%def%')
OR
(report.name like '%ghi%' AND report.name like '%jkl%')
OR
(bom_functions.name like '%ghi%' AND bom_functions.name like '%jkl%')
)
Can anyone help me out!