Web サイトに Sphinx RT インデックスを使用しようとしています。中置検索以外はすべて機能します。
index rt
{
type = rt
path = /var/lib/sphinxsearch/data/rt.sph
rt_field = name
rt_field = address
rt_field = keyword
rt_attr_uint = type
min_word_len = 1
min_infix_len = 3
enable_star = 0
html_strip = 0
inplace_enable = 0
charset_type = utf-8
}
rt インデックスにいくつかの値を挿入しました。例:
Insert into rt(id,name,address,keyword,type) values(100,'JohnRambo','Newyork','assassin',1);
これで、'JohnRambo' を検索すると、正しい結果が返されます。しかし、'John' または 'Rambo' を検索すると、空の結果セットが返されます。
mysql> select * from rt where match('John');
Empty set (0.00 sec)
不足しているものはありますか?どんな助けでも大歓迎です!