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 链接 
发帖注意:
  • 网址中请去掉http://开头,例如:您需要输入www.coreseek.cn,而不是http://www.coreseek.cn
  • 咨询问题,请贴出详细的操作系统版本、Coreseek版本(Linux环境请给出编译参数)
  • 请仔细查看中文手册和本站安装指南,确认操作正确
  • 请仔细查看常见问题解答,也许你的问题已经有解决方法

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