多数の列にフルテキスト インデックスがあり、それらの列で MATCH AGAINST IN BOOLEAN MODE を実行して、電子メール アドレスを見つけようとしています。結果は次のとおりです。
- "test@email.com" (引用符付き) を検索すると、クエリは正しい結果を返します
- "a@b.com" (引用符付き) を検索すると、クエリは何も返さない
短いメール a@b.com が返されない理由と、これを解決する方法を教えてください。
私が使用しているクエリは次のとおりです。
SELECT MATCH(email, phone, title, description) AGAINST('"a@b.com"' IN BOOLEAN MODE) AS score
FROM thetable WHERE MATCH(email, phone, title, description)
AGAINST('"a@b.com"' IN BOOLEAN MODE) ORDER BY `status` DESC, score DESC