Hi Piotr

Curiosly, I've not changed the index setup code recently. Is it any  
different if you use city.population instead of city(:population) ?

-- 
Pat

On 29/07/2009, at 12:44 PM, Piotr Sarnacki wrote:

>
> Hi,
>
> I've upgraded sphinx to current master version and there are some
> problems with indexing belongs_to fields.
>
> Let's say I have Article model and it's connected with city, and city
> has population as an integer.
>
> class Article
>  belongs_to :city
>
>  define_index do
>    has city(:population), :as => city_population, :type => :integer
>  end
> end
>
> In older version of sphinx it was correctly indexed. In newer version
> thinking sphinx generates:
> "articles"."population" AS "city_population" which is not what I
> expect.
>
> I'll try to add some failing tests later in the evening but maybe
> someone know how to handle it with new sphinx :)
> >


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