ThinkingSphinx returning empty result in console

风流意气都作罢 提交于 2019-12-11 19:16:36

问题


I am having the same problem that is brought up here:

thinking sphinx and console

(Tried to ask a question on that thread but can't...)

Basically, any search done in the console returns an empty result. However, if I do the search through the site it works fine.

But are in development mode on my local machine. (OS X)

Example:

> Article.search 'eating'
[]

That same search in a browser returns the expecting results.

I have rebuild the indexes numerous times. Killed off ThinkingSphinx and rebuild it, etc. Nothing seems to make any change in the console.

This is with Rails 3 and Ruby 1.9.2-p180

Any insight would be great.

Thanks.

来源:https://stackoverflow.com/questions/10091367/thinkingsphinx-returning-empty-result-in-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!