Hi Ryan

I've not seen this issue before - attribute and description being null 
shouldn't cause any problems – Sphinx should just treat them as empty strings. 
I've just tested this locally without any issues...

What versions of Thinking Sphinx and Sphinx are you using?

-- 
Pat

On 30/09/2010, at 1:07 AM, Ryan Wanger wrote:

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

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