MySQL FULLTEXT not working

前端 未结 2 1374
Happy的楠姐
Happy的楠姐 2020-12-08 08:09

I\'m attempting to add searching support for my PHP web app using MySQL\'s FULLTEXT indexes.

I created a test table (using the MyISAM type, with a single text field

2条回答
  •  孤城傲影
    2020-12-08 08:35

    Add more data. By default MySQL will ignore any word that is in 50% or more of the rows in the table as it considers it would be a 'noise' word.

    With very few rows in a table, it is common to hit this 50% limit often (ie. if you have two rows, every word is in at least 50% of the rows!).

提交回复
热议问题