Hi Carlo
Are you able to create a test application with just TS and two databases, and
confirm that the bug exists there as well? I'm not sure why this isn't working
for you... TS figures out search results on a per-model basis and then merges
the ActiveRecord instances, so it should be making a query to both models (and
thus, both databases). Does the log provide any clues to what's going wrong?
Also, what versions of Rails, Sphinx and Thinking Sphinx are you using?
Cheers
--
Pat
On 31/03/2010, at 1:37 AM, carlo.schiesaro{[at]}gmail.com wrote:
> Hello, I'm trying to search on multiple db.
>
> I've 2 models:
>
> class WpBlogPost < MasterDatabase
> end
>
> class User < ActiveRecord::Base
> end
>
> It works if I:
>
> @elements = ThinkingSphinx.search "test", :classes => [WpBlogPost]
>
> and
>
> @elements = ThinkingSphinx.search "test", :classes => [User]
>
> but it's not if I:
>
> @elements = ThinkingSphinx.search "test", :classes =>
> [WpBlogPost,User]
>
> result is:
>
> => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
> nil, nil, nil, nil, nil, nil, nil]
>
> --
> 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.