Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持sphinx查询语法么? #12

Open
GoogleCodeExporter opened this issue Nov 5, 2015 · 1 comment
Open

不支持sphinx查询语法么? #12

GoogleCodeExporter opened this issue Nov 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

我测试了下

命令行下直接用search查询 love -kitty 可以查处含love 
不含kitty的结果

用php客户端,查出来的实际上是不支持语法的 

love & kitty 的结果,love -kitty 的结果,都是love 与 kitty 
两个词的结果 

也许是sphinx的问题吧

Original issue reported on code.google.com by [email protected] on 4 Jul 2010 at 9:16

@GoogleCodeExporter
Copy link
Author

sphinx 默认搜索模式是 SPH_MATCH_ALL  即 
匹配所有查询词,所以会是这两个词的结果
你可以把 搜索模式设为 SPH_MATCH_EXTENDED, 
即可使用sphinx内置的查询语法 

Original comment by [email protected] on 18 Aug 2010 at 4:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant