I'm sure this has been answered somewhere, but I can't seem to find
it.

I have an index on a model that looks like this

class Triptracker

  define_index do
    indexes :attribute
    indexes :description
    indexes tt_type

    has trip_segment.trip(:id), :as => :trip_id, :type => :integer
  end

end

There are others in there too, but it's not important. There are 6
different tt_types, and all of them have a non null value
for :attribute and :description, except for one tt_type, "thought".

So all thoughts have a nil :attribute. What this means is that when I
do a search like:
Triptracker.search(:with => {:trip_id => 7913}, :limit => 5)

the results won't find any of the thoughts.

If I change the :attribute of a thought to anything other than null,
it immediately appears in the sphinx results.

Is there an easy fix for this?

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