Didn't know about scopes. They worked great in my case! Maybe the docs should be updated to not have an :include example if it's not working.
Thanks! On Aug 19, 9:47 pm, Pat Allan <[email protected]> wrote: > Unfortunately, :include isn't one of the options carried through to > every search. If you want to submit a patch that ensures this, that'd > be great. Otherwise, you could create a sphinx scope with that > include, and use that every time you're > searching.http://freelancing-god.github.com/ts/en/scopes.html > > -- > Pat > > On 19/08/2009, at 8:39 PM, rejeep wrote: > > > > > Hi! > > > I read in the docs that you could specify some options directly when > > defining an index. Lets say I have this index on a person model: > > define_index do > > indexes :name > > end > > > So instead of searching like this: > > Person.search("Steven", :include => :company) > > I could do this if I always wanted to include company when searching > > the person model. > > define_index do > > indexes :name > > > set_property :include => :company > > end > > > But that does not work for me. I have to specify the options to the > > search method. > > > Did I misunderstand something or what? I did reconfigure and reindexed > > after the update. > > > Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
