简体   繁体   English

在Ruby on Rails 2.3.2上运行Sphinx的问题

[英]Problem to run Sphinx on Ruby on Rails 2.3.2

Yesterday I was trying to install Sphinx for full-text search on Windows 7. So, I followed their website's installation steps . 昨天,我试图在Windows 7上安装Sphinx进行全文搜索。因此,我遵循了他们网站的安装步骤 Once I installed its windows service, I ran the indexer and then the test search against my app database and it worked great. 安装完Windows服务后,我运行了索引器,然后对我的应用数据库进行了测试搜索,效果很好。

Then, I wanted to make it work on Ruby on Rails 2.3.2, so I downloaded and installed the thinking-sphinx plugin . 然后,我想使其在Ruby on Rails 2.3.2上运行,因此我下载并安装了think-sphinx插件 I followed these steps , creating the sphinx.conf file at the config directory of my app, and then I ran the rake thinking-sphinx:indexer and it worked great. 我按照以下步骤操作 ,在应用程序的config目录中创建了sphinx.conf文件,然后运行了rake think-sphinx:indexer,效果很好。 After that, when I wanted to start it, as it's explained in that guide, it didn't start...it just keep saying "thinking-sphinx:start", and it didn't either stop or start. 之后,当我想要启动它时,如该指南中所述,它没有启动...它只是一直说“ thinking-sphinx:start”,而没有停止或启动。

What am I doing wrong? 我究竟做错了什么?

Thanks, Brian 谢谢,布莱恩

Well, it seems that without starting it using rake it works anyway...it's maybe because the Sphinx service is already started, so you don't need to start it also with the rake from ruby. 好吧,似乎没有使用rake来启动它还是可以工作的……也许是因为Sphinx服务已经启动了,所以您不需要用ruby的rake来启动它。

I've got another doubt now...I'm from Argentina and we use accents to write in some words...for example "acción", which means "action" in english. 现在我还有另一个疑问...我来自阿根廷,我们用口音来写一些单词...例如“acción”,这在英语中意为“动作”。 I tried searching that word without the accent(people don't ussually write accents on searches) and it didn't bring any results, but if I search it with the accent, it will bring results. 我尝试在没有重音的情况下搜索该词(人们通常不会在搜索中写重音),但没有带来任何结果,但是如果我以重音进行搜索,它将带来结果。

How can I fix that? 我该如何解决?

Thanks, Brian 谢谢,布莱恩

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 红宝石1.9.2和Rails 2.3.2 - ruby 1.9.2 and rails 2.3.2 Rails 2.3.2单元测试在使用正常红宝石运行时通过,而在瑞克测试运行时失败: - Rails 2.3.2 unit test passes when run with normal ruby, fails when run with rake test:units 在Ruby 1.9.1和Rails 2.3.2下,Cucumber是否被破坏了? - Is Cucumber broken under Ruby 1.9.1 and Rails 2.3.2? 使用Ruby 1.9.1 / Rails 2.3.2运行RSpec - Running RSpec with Ruby 1.9.1/Rails 2.3.2 带有Rails 2.3.2的MySQL全文索引(迁移问题) - MySQL Fulltext index with Rails 2.3.2 (migration problem) Rails 2.3.2 / Ruby 1.8.6编码问题-ActionController返回UTF-8吗? - Rails 2.3.2/Ruby 1.8.6 Encoding Question - ActionController returning UTF-8? 在Ruby on Rails 2.3.2中,如何在创建动作期间打印出params? - in Ruby on Rails 2.3.2, how to print out params during a create action? 安装 Rails 2.3.2 的问题和 version_requirements 失败 - Problem installing Rails 2.3.2 and version_requirements fail 使用Sphinx的错误搜索结果 - Ruby on Rails - Wrong search results with Sphinx - Ruby on Rails 从Rails 2.3.2 Ruby 1.8.6升级到Rails 2.3.5 Ruby 1.8.7未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError) - Upgrade from Rails 2.3.2 Ruby 1.8.6 to Rails 2.3.5 Ruby 1.8.7 uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM