I'm having a really baffling issue with the latest stable thinking
sphinx + sphinx.

Given the stripped down models below, a call to Parent.search(query)
seems to always return the expected results if query exists anywhere
in parent.fragment.value. Similarly for Child.search(query) /
child.fragment.value and Fragment.search / value.

The problem I'm having is that Parent.search(query) seems to only
return results on children.fragment.value if there is an occurrence of
query in the first few hundred bytes. Any later occurrences of query
seem be ignored.

Fragment.value is a text field, and I'm using mysql 5 (FYI).

Any help would be very much appreciated!

- Will

class Parent < ActiveRecord::Base

        has_one :fragment, :as => :owner
        has_many :children

        define_index do
                indexes fragment.value, :as => :value
                indexes children.fragment.value, :as => :child_values
        end

end

class Child < ActiveRecord::Base

        has_one :fragment, :as => :owner
        belongs_to :parent

        define_index do
                indexes fragment.value, :as => :value
        end

end

class Fragment < ActiveRecord::Base

        belongs_to :owner, :polymorphic => true

        define_index do
                indexes value
        end
end


--~--~---------~--~----~------------~-------~--~----~
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