Is there a way to avoid double-writing in an expression query, such as the example 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 already tried
SELECT
MATCH(test) AGAINST("str" IN BOOLEAN MODE) AS testRelevance,
.......
FROM
mytable
WHERE
.......
HAVING
testRelevance > 0
but this is bad for large tables (only in some cases, apparently?)
early
user652649
source
share