开发者

MYSQL Match AGAINST

开发者 https://www.devze.com 2023-03-12 03:29 出处:网络
I have table called \'business\' with 13,000,000 records so far. I want to search in this table on lowerTitle and phone fields.

I have table called 'business' with 13,000,000 records so far. I want to search in this table on lowerTitle and phone fields. If I'm using:

SELECT * FROM business WHERE MATCH (lowerTitle) AGAINST (`blabla` IN BOOLEAN MODE);

It's working fast, Now I want to search also in phone field using:

SELECT * FROM business WHERE MATCH (lowerTitle,phone) AGAINST (`blabla` IN BOOL开发者_Python百科EAN MODE);

for some reason, it's working very slow, someone can assist here?

Thank you very much.


Make sure you've a full text (not btree) index on (lowerTitle,phone). If not:

create fulltext index business_ft_idx on business(lowerTitle, phone);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号