开发者

Nested Nears with Sphinx and Thinking_Sphinx

开发者 https://www.devze.com 2023-04-11 13:53 出处:网络
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

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

精彩评论

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

关注公众号