论坛首页 编程语言技术论坛

利用thinking sphinx实现全文检索

浏览 22493 次
该帖已经被评为精华帖
作者 正文
   发表时间:2009-07-31  
对chinese_dictionary参数的配置比较有兴趣,看前面的教程中虽然sphinx.yml里配置了,但在生成配置文件后还需要手工再添加一次,不能够自动添加吗?

能分享一下你使用的TS插件吗?或者说一下具体是哪个版本支持这个参数,谢谢
0 请登录后投票
   发表时间:2009-08-11  
qichunren 写道
我想知道 Sphinx和Ferret 能不能用于Oracle数据库下。


有一个oracle Text的技术,效果上根Sphinx比较相近.

性能方面还不错,但是暂时没有人测试对比,如果有兴趣,可以测试一下,然后把结果发到这里来!:)
0 请登录后投票
   发表时间:2009-09-19  
不支持多对多的索引, 这一点不如ultrasphinx
0 请登录后投票
   发表时间:2009-09-21   最后修改:2009-09-21
linux 上如何实现 中文分词?
0 请登录后投票
   发表时间:2009-11-28   最后修改:2009-11-28
问一下 thinking sphinx支持ruby1.8.6/rails1.2.3吗
通过gem安装了freelancing-god-thinking-sphinx-1.2.0, 在调用ts命令过程中总是提示can't convert Hash into String
引用
D:\zsb>rake ts:version --trace
(in D:/zsb)
** Invoke ts:version (first_time)
** Invoke thinking_sphinx:version (first_time)
** Invoke thinking_sphinx:app_env (first_time)
** Execute thinking_sphinx:app_env
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't convert Hash into String
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:300:in `match'


在environment.rb中的配置
config.gem   'freelancing-god-thinking-sphinx'  , :version => '1.2.0', :lib => 'thinking_sphinx'

在rakefile中的配置
require 'thinking_sphinx/tasks'
0 请登录后投票
   发表时间:2009-12-01  
照你的样子 把插件放到项目里 然后运行项目就报下边的错误

Riddle cannot detect Sphinx on your machine, and so can't determine which

version of Sphinx you are planning on using. Please use one of the following

lines after "require 'riddle'" to avoid this warning.



  require 'riddle/0.9.8'

  # or

  require 'riddle/0.9.9'



   



Sphinx cannot be found on your system. You may need to configure the following

settings in your config/sphinx.yml file:

  * bin_path

  * searchd_binary_name

  * indexer_binary_name



For more information, read the documentation:

http://freelancing-god.github.com/ts/en/advanced_config.html

Exiting

Missing these required gems:

  freelancing-god-thinking-sphinx  = 1.3.7



You're running:

  ruby 1.8.6.111 at d:/ruby/bin/ruby.exe

  rubygems 1.3.1 at d:/ruby/lib/ruby/gems/1.8



Run `rake gems:install` to install the missing gems.
0 请登录后投票
   发表时间:2009-12-01  
config.gem(
    'freelancing-god-thinking-sphinx',
    :lib         => 'thinking_sphinx',
    :version     => '1.3.7'
    )
0 请登录后投票
   发表时间:2009-12-01  
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)

=> Rails 2.2.2 application starting on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

** Starting Mongrel listening at 0.0.0.0:3000

** Starting Rails with development environment...



Riddle cannot detect Sphinx on your machine, and so can't determine which

version of Sphinx you are planning on using. Please use one of the following

lines after "require 'riddle'" to avoid this warning.



  require 'riddle/0.9.8'

  # or

  require 'riddle/0.9.9'



   



Sphinx cannot be found on your system. You may need to configure the following

settings in your config/sphinx.yml file:

  * bin_path

  * searchd_binary_name

  * indexer_binary_name



For more information, read the documentation:

http://freelancing-god.github.com/ts/en/advanced_config.html

Missing these required gems:

  freelancing-god-thinking-sphinx  = 1.3.8



You're running:

  ruby 1.8.6.111 at d:/ruby/bin/ruby.exe

  rubygems 1.3.1 at d:/ruby/lib/ruby/gems/1.8



Run `rake gems:install` to install the missing gems.

Exiting

0 请登录后投票
   发表时间:2009-12-02   最后修改:2009-12-02
是不是你的gem的版本问题 换一个试一下
我rails2.3.5安装只出现下面这个warning,问题不大
引用
Riddle cannot detect Sphinx on your machine, and so can't determine which

version of Sphinx you are planning on using. Please use one of the following

lines after "require 'riddle'" to avoid this warning.



  require 'riddle/0.9.8'

  # or

  require 'riddle/0.9.9'



   



Sphinx cannot be found on your system. You may need to configure the following

settings in your config/sphinx.yml file:

  * bin_path

  * searchd_binary_name

  * indexer_binary_name
0 请登录后投票
   发表时间:2009-12-02  
楼上的 我发现 去掉
config.gem(
    'freelancing-god-thinking-sphinx',
    :lib         => 'thinking_sphinx',
    :version     => '1.3.7'
    )

就和你的警告一样了 出现那样的警告没关系吗? 我rails 是 2.2.2
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics