Hi Giovanni
If there are fields with the same name in both/all models, then you
can just use conditions in the same way as you would on a single model:
ThinkingSphinx.search 'giovanni',
:conditions => {:position => 'staff'},
:classes => [User, UserGroup]
Cheers
--
Pat
On 24/11/2009, at 12:59 AM, Giovanni Sakti wrote:
> Hi guys,
> I'm new with thinking sphinx and i got stuck in implementing
> application wide search with conditions.
>
> for example i could do this when using model search:
>
> User.search 'giovanni', :conditions => {:position => 'staff'}
>
> But how can i use conditions for application wide search ?
>
> ThinkingSphinx.search 'giovanni', :classes => [User, UserGroup]
>
>
>
> --
>
> 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=
> .
>
>
--
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.