If you don't want load models to fire, you can set your indexed models in 
config/sphinx.yml:

  development:
    indexed_models:
    - Article
  test:
    indexed_models:
    - Article
  production:
    indexed_models:
    - Article

That said, you shouldn't need to do that... can you let us know what the full 
stack trace of the error is?

Cheers

-- 
Pat

On 17/02/2011, at 11:57 AM, tachekent wrote:

> I added the file:
> /config/initializers/thinking_sphinx.rb
> 
> ThinkingSphinx::Context.class_eval do
>  def load_models
>    "Article".constantize
>  end
> end
> 
> If I understand correctly, as long as I include any directly indexed
> files here, I should be ok.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to