Pat Allan wrote:
> Technically, Sphinx only supports integer MVA's, so removing :multi  
> from translate should do the job. Consider it committed :)
>
> Lee: I'm keeping an eye on your branch, will look over your commits  
> when I have some time.
>
> And generally, thanks all for your patience with this. The facets code  
> is pretty volatile at the moment, with all these patches and my own  
> work on it, so it's a bit hard to get many patches in right now.  
> Having the input is really helpful though, to get my head around the  
> ways people need facets to work.
>   
Great.  I'm still having problems with two things:

1) Unless I actually specify the type of the MVA in the define_index 
call (i.e. ":type => :multi") then I get an error in which TS can't 
discern the type (the raise in 
Attribute#translated_type_from_database).  What I do see is that 
is_many? is returning false for some reason. In fact, @associations is 
empty for the Attribute generated by "has taggings.tag_id, :as => 
:tag_ids, :facet => true". Any clues?  Where is this supposed to be 
initialized? I can't find any code that will do it.

2) If we do want to warn or invoke an error for non-integer MVAs, I 
can't see where to do that either. Maybe it would make some sense to 
have a second instance var on the Attribute representing the type of the 
end-point attribute when indexing an MVA.  That way, some of these tests 
could be handled much more easily (e.g. conversion from int to bool).

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