开发者

Nested Nears with Sphinx and Thinking_Sphinx

I have a RAILS 3.0.10 application (using Ruby 1.9.2) that using the thinking_sphinx gem. Is it possible in the extended match mode to use the "or" operator with the "near" operator so that thinking_sphinx will find text with either word in group 1 within a specified proximity to either word in group 2. For example, '(pro | support | apologist | backer | stalwart | proponent | patron | partisan | hero | le开发者_如何学Cader | martyr | aimed | stop) NEAR/30 people' ? I am using sphinx 0.9.9-release.


ThinkingSphinx.search "pro support apologist", :match_mode => :any

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜