LoginSignup
1
0

More than 5 years have passed since last update.

MYSQLの全文検索で検索文字列を沢山入れたらエラーになった。

Posted at

環境

MYSQL 5.7.20

事象

FULLTEXTインデックスを設定したカラムに以下のようなバイグラムで検索するSQLを実行したところ

SELECT COUNT(*) FROM `table_name` WHERE (match(`bigram`) against('+"長い い文 文字 字列" in boolean mode'));

下記のエラーが出た

ERROR 191 (HY000): Too many words in a FTS phrase or proximity search

match against in boolean modeを使う際は気を付けた方が良さそうです。

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0