[Rails] Re: Problem with "Thinking Sphinx"

2010-08-02 Thread pat
Hi Mike The reason for the message in the logs is that Thinking Sphinx/Sphinx only knows the ids of your search results, and needs to load the actual objects to return - hence why it talks to the database as well. As for post_desc - this isn't available as a method anywhere (on the search collect

Re: [Rails] Re: Problem with "Thinking Sphinx"

2010-08-02 Thread Luciano Sousa
this is a valid return: *=> [#]** * for access after try: *s.each do |sa|* * sa.post_desc* *end* 2010/8/2 Mike Disuza > Hi, > I am tried like this:- > Still no success > s=Post.search "pune" > => [# company", created_at: "2010-07-14 12:17:16", updated_at: "2010-07-14 > 12:17:16", delta: false

[Rails] Re: Problem with "Thinking Sphinx"

2010-08-02 Thread Mike Disuza
Hi, I am tried like this:- Still no success s=Post.search "pune" => [#] >> s.post_desc NoMethodError: undefined method `desc' for # from /usr/local/ruby/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.18/lib/thinking_sphinx/search.rb:116:in `method_missing' from (irb):2 Thanks, Mike -- Poste