解析用户输入的全文搜索查询

I have a search string and I want parse and convert it into MySQL query. For example:

(tag:"marketing" || tag:seo) && "example@example.com" && test

to

SELECT 
   * 
FROM 
   `table` 
WHERE 
   (`tag` LIKE "%marketing%" OR `tag` LIKE "%seo%") AND 
   content LIKE "%example@example.com%" AND 
   content LIKE "%test%"

P.S. I've already found this and this, but these solutions are not for me. Maybe somebody knows popular one?