xuxm2007 / sphinx-for-chinese

Automatically exported from code.google.com/p/sphinx-for-chinese
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
我测试了下

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

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

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

也许是sphinx的问题吧

Original issue reported on code.google.com by mel...@gmail.com on 4 Jul 2010 at 9:16

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

Original comment by Dia...@gmail.com on 18 Aug 2010 at 4:42