It shouldn't be any different, but can you try a search using 1 instead of true?
--
Pat
On 23/10/2012, at 5:31 AM, Sam Slotsky wrote:
> I see no reason why this shouldn't work, but I get no results. A Contact has
> many OrganizationContacts. And OrganizationContact has a boolean field
> primary. I've added a filter on this field as shown below.
>
> class Contact < ActiveRecord::Base
>
> has_many :organization_contacts, :dependent => :destroy
>
> define_index do
> has organization_contacts(:primary), :as => :primary_contacts
>
> set_property :delta => true
> end
> end
>
> In a debugging session I can see that I do indeed have a Contact with an
> OrganizationContact that is listed as primary:
>
> (rdb:1) p Contact.first.organization_contacts.first.primary
> true
>
> But if I do a ThinkingSphinx search using that filter, I get nothing:
>
> (rdb:1) p Contact.search :with => { :primary_contacts => true }
> []
>
> Can anyone explain?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/thinking-sphinx/-/-8QQn-pphesJ.
> 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.
--
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.