MySQL: Something wrong with Fulltext search - Returning NO results

后端 未结 3 1872
忘掉有多难
忘掉有多难 2020-12-20 14:57

I have a table places(name vachar(50), address text, description text) engine = MYISAM and few records.

I have been trying to do some example in here!,

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 15:13

    I had the same issue, the query was working in the past and suddenly my tests started failing. I managed to isolate the query and indeed, it didn't returned any results. I was using boolean mode so the 50% rule could not have caused the issue.

    I solved the issue by running:

    OPTIMIZE TABLE organizations; # replace table name
    

    I think sometimes the MySQL index stops working when you have a lot of writes / deletes. Weird that I didn't got an error instead.

提交回复
热议问题