On Mon, Nov 9, 2009 at 2:08 PM, James Earl <[email protected]> wrote: > On Mon, Nov 9, 2009 at 2:06 PM, Martin Sarsale <[email protected]> > wrote: >> >>> yep, do something like this in your define_index : >>> >>> as :field, :as => :foos, :source => :field >> >> that should be "has :field, [...]" > > That's easy, thanks! :)
It appears that this doesn't work with facet => true though, is that right? When I try, I get back something like this: >> facets[:category_ids].first => [[#<Category id: 2, parent_id: nil, ancestry: nil, path: "2">, #<Category id: 21, parent_id: 2, ancestry: "2", path: "2,21">], 3] Does :source => :query work with faceting? 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 -~----------~----~----~----~------~----~------~--~---
