Thanks, that's awesome!!!

Is this kind of API documented anywhere - I looked in the various "how
to" documents and don't recall seeing this.

Cheers,
Graham

On Jul 27, 2:53 am, Pat Allan <[email protected]> wrote:
> There is indeed a way:
>    ThinkingSphinx.search :conditions => {:value => 'xxx'}
> (If you're using the latest version, otherwise:
>    ThinkingSphinx::Search.search :conditions => {:value => 'xxx'}
> )
>
> Accepts the same syntax as A.search
>
> Cheers
>
> --  
> Pat
>
> On 27/07/2009, at 4:02 AM, Graham Glass wrote:
>
>
>
>
>
> > Hi everyone,
>
> > I'm a happy TS user and all the classes I currently search for (let's
> > call them A, B and C) are in a hierarchy with a common base class
> > (let's call it Base). I index fields in the base class then issue a
> > Base.search(pattern). This returns all the objects that match a
> > particular search pattern (like value='xxx').
>
> > I'd prefer for architectural reasons that these classes to not share a
> > common base class. So I'd like to to index instances of A, B and C
> > (each now standalone classes) then then issue a search that says
> > "return all the objects that have value = 'xxx'". (maybe Object.search
> > () or something like that). Since A, B and C each have a field called
> > "value", I'd like to get back all the As, Bs and Cs that match.
>
> > Is there a way to do this using TS?
>
> > Cheers,
> > Graham
--~--~---------~--~----~------------~-------~--~----~
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