[英]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.