问题
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