2013-07-14 139 views
0

我有一个MySQL表,有25k条记录MyIsam。 我试图运行全文搜索查询,有时它有时不会工作。MySql FULLTEXT返回0结果

select article_id from news_article where match(article_name,article_content) against(' (h.h h.hs) ' IN BOOLEAN MODE) order by article_date DESC 

这是查询。我为article_name和文章内容设置了全文搜索关键字。我的db的“ft_min_word_len”是“3”。

回答

0

这是你的意思吗?

 against('h.h h.hs' IN BOOLEAN MODE) 

如果两个值然后使用此

where article_name IN ('h.h' , 'h.hs') 
    AND article_content in ('h.h' , 'h.hs') 
+0

它不是2值,其像h.h或h.hs. 它不关于值,每当一个'。'它会结果0值:( – benji

+0

试试这个更新的答案 –