在 Ruby on Rails 2.3.2 上运行 Sphinx 时出现问题
昨天我尝试在 Windows 7 上安装 Sphinx 进行全文搜索。因此,我按照 他们网站的安装步骤。 一旦我安装了它的 Windows 服务,我就运行了索引器,然后针对我的应用程序数据库进行了测试搜索,效果非常好。
然后,我想让它在 Ruby on Rails 2.3.2 上运行,所以我下载并安装了 thinking-sphinx 插件。我按照这些步骤,在我的应用程序的配置目录中创建 sphinx.conf 文件,然后然后我运行了 rakethinking-sphinx:indexer,效果很好。之后,当我想启动它时,正如该指南中所解释的那样,它没有启动......它只是一直说“thinking-sphinx:start”,并且它没有停止或启动。
我做错了什么?
谢谢, 布莱恩
Yesterday I was trying to install Sphinx for full-text search on Windows 7. So, I followed their website's installation steps.
Once I installed its windows service, I ran the indexer and then the test search against my app database and it worked great.
Then, I wanted to make it work on Ruby on Rails 2.3.2, so I downloaded and installed the thinking-sphinx plugin. 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. 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.
What am I doing wrong?
Thanks,
Brian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,看来不使用 rake 启动它无论如何都可以工作......这可能是因为 Sphinx 服务已经启动,所以你不需要也使用 ruby 的 rake 启动它。
我现在还有另一个疑问......我来自阿根廷,我们用重音来写一些单词......例如“acción”,在英语中意思是“行动”。我尝试在不带重音的情况下搜索该单词(人们通常不会在搜索中写重音)并且它没有带来任何结果,但是如果我用重音搜索它,它将带来结果。
我该如何解决这个问题?
谢谢,
布莱恩
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.
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. 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