我想在我的project.And中使用狮身人面像,我想使用RT索引和sphinxQL.But,我不能使用通配符query.Does,有人有建议吗?
这是我的sphinx.conf :索引测试
{
type = rt
path = /usr/local/sphinx/var/data/testrt
charset_type = utf-8
min_infix_len = 1
enable_star = 1
rt_field = name
rt_attr_string = game}
INSERT:
insert into testrt values(1,'sphinx','sphinx');查询正常,1行受影响(0.02秒)
mysql> select * from testrt;+-+-+| id |权重|游戏|+-+|1|1| sphinx |+-+1行(0.01秒)
mysql> select * from testrt where match('sphinx');+-+| id |权重|游戏|+-+|1| 1500 | sphinx |+-+1行(0.00秒)
mysql> select * from testrt where match('sphin*');空集(0.00秒)
mysql> select * from testrt where match('sphin\\*');我希望你能帮我做一个favor.Thank!
发布于 2012-06-18 21:49:19
需要dict=keywords进行前缀匹配才能在rt索引上工作。
http://sphinxsearch.com/docs/2.0.4/conf-dict.html
请注意,现在只支持前缀搜索,中缀在rt索引上不起作用
https://stackoverflow.com/questions/11082261
复制相似问题