Is there a way to avoid writing twice in a query an expression such as the one in my example?
SELECT
MATCH(test) AGAINST("str" IN BOOLEAN MODE) AS testRelevance,
.......
FROM
mytable
WHERE
.......
MATCH(test) AGAINST("str" IN BOOLEAN MODE) > 0
i have tried already
SELECT
MATCH(test) AGAINST("str" IN BOOLEAN MODE) AS testRelevance,
.......
FROM
mytable
WHERE
.......
HAVING
testRelevance > 0
but that's not good for big tables (only in some cases apparently?)
thank you in advance