Hira- You need to add attributes in your index for each association you want to filter by. The index entry should look something like:
has users(:id) as users_id depending on how you have set your relationships up. See the Attributes section here for more info: http://freelancing-god.github.com/ts/en/indexing.html To filter on those attributes then use a with clause. Property.search(string_to_search, :with = {:users_id => some_id } More info here: http://freelancing-god.github.com/ts/en/searching.html#filters Greg Blue Mango Learning Systems On Mar 18, 2:16 am, Hira <[email protected]> wrote: > i just want to search on properties; i have a property model that has > several associations with other models; > at times i need to do search only on property and at time i need to search > using t`hese relations ships > > for example > > propert has one type > > i need to find all properties that have a specific type; and such searches > > waiting for your kind reply > -- > Regards, > Hira Muzzamil -- 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.
