Coreseek®  
 | 首页 | 注册 | 回复 | 搜索 | 统计资料 |                 网站首页产品服务开放源码安装使用联系我们 
全文检索 论坛首页 / 全文检索 /

如何限定SPHINX只做前缀搜索?

 
justlooks
会员
#1 | 发表时间: 2010 03 10 10:13
回复 
有个需求是查找所有以某个字串开头的所有记录
HonestQiao
会员
#2 | 发表时间: 2010 03 10 18:05
回复 
9.2.15. min_prefix_len
Minimum word prefix length to index. Optional, default is 0 (do not index prefixes).


9.2.19. enable_star
Enables star-syntax (or wildcard syntax) when searching through prefix/infix indexes. Optional, default is is 0 (do not use wildcard syntax), for compatibility with 0.9.7. Known values are 0 and 1.



9.2.17. prefix_fields
The list of full-text fields to limit prefix indexing to. Optional, default is empty (index all fields in prefix mode).
 
回复
Bold Style  Italic Style  Image 链接  URL 链接 

» 帐号  » 密码 
发帖前请登陆, 或者 注册 .