Hi everyone,

I'm working on upgrading some legacy rails code, and in the process, also 
updated TS from version 2 to 3. After upgrading though, I can't get the 
searches to work properly. From the models I have, only one is using Sphinx, 
while the others rely on database queries.

The relevant code looks like the following - 
https://gist.github.com/siddhantgoel/2dfb0e7c309a348e733f

What I find strange is that ActiveRecord::Base.search is always returning a 
ThinkingSphinx::Search object, even in the models which don't have an index 
defined in app/indices. So in the non-indexed models (contact.rb in this case), 
calling the search method throws a ThinkingSphinx::NoIndicesError. And in 
applicant.rb, it throws a ThinkingSphinx::MixedScopesError saying "You cannot 
search with Sphinx through ActiveRecord scopes". Any ideas? Thanks!

Siddhant

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to