Hi Martijn

Not entirely sure why this is happening - but it appears you're using  
an old version of TS, so that makes it a bit hard to debug. Would you  
be able to update to the latest and try again?

Also, I've deprecated ThinkingSphinx::Search.search for  
ThinkingSphinx.search in recent versions (1.2.x) - although the old  
syntax still works.

Cheers

-- 
Pat

On 04/08/2009, at 4:38 PM, Martijn wrote:

>
> Hi all,
>
> On my staging environment, I want to search over multiple models. If I
> search models individually, everything works fine. However, if I
> search using ThinkingSphinx::Search.search 'something' - I get the
> following error:
>
> NoMethodError (undefined method `constantize' for nil:NilClass):
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 101:in `class_from_crc'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 80:in `instances_from_classes'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 78:in `each'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 78:in `instances_from_classes'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 39:in `instances_from_matches'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb:
> 31:in `create_from_results'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/search.rb:
> 371:in `search'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/search.rb:
> 388:in `call'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/search.rb:
> 388:in `retry_search_on_stale_index'
>    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/search.rb:
> 363:in `search'
>
> Everything works on development though. Why do I get this error on
> staging? Help is greatly appreciated!
>
> >


--~--~---------~--~----~------------~-------~--~----~
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