开发者

Will MySQL full-text-search return the results I need?

开发者 https://www.devze.com 2022-12-27 16:22 出处:网络
I have a keyword field with a list of 5 keywords for each item. example below: 2008, Honda, Accord, Used, Car

I have a keyword field with a list of 5 keywords for each item. example below:

2008, Honda, Accord, Used, Car

Will MySQL full text return the item above for the following search requests?

2008 Honda Accord
Honda Accord
Used Car 

If so, how 开发者_如何学Pythonwell will this hold up when searching through fifty thousand plus records?


You can use LIKE operator. WHERE x LIKE '%Honda%Accord%'. You get all rows contains HondaAccord*. I think is so helpful for your problem. Fifty thousand is small amout of records, you can not thinking about performance problem, you must only have index on this column.

0

精彩评论

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