现在想使用match() against做查询
SELECT ProductID, ProductName,
MATCH(ProductName, ProductName)
AGAINST ('my best product') AS score FROM t_items
WHERE MATCH(ProductName, ProductName)
AGAINST ('my best product') ORDER BY score DESC LIMIT 50表中有一条记录 productname 是 my best product 但它在搜索结果中的排名却不是最靠前的,其他的里面包含 product等的却在前面,,,请问是什么问题啊?
SELECT ProductID, ProductName,
MATCH(ProductName, ProductName)
AGAINST ('my best product') AS score FROM t_items
WHERE MATCH(ProductName, ProductName)
AGAINST ('my best product') ORDER BY score DESC LIMIT 50表中有一条记录 productname 是 my best product 但它在搜索结果中的排名却不是最靠前的,其他的里面包含 product等的却在前面,,,请问是什么问题啊?
ft_min_word_len=2 (缺省为4,所以“my”没用)
ft_stopword_file="*/ft.stop"(缺省“my”、“best”都在其中,所以“my best”没用)所以:
其他的里面包含 product等的却在前面