Oh, and attributes and fields cannot share names - and those two uses of 
amplua, they’ve got the same name (but obviously, the problem of it being 
either a column or an association, but not both, needs to be addressed).

On 10 Nov 2014, at 12:50 am, Pat Allan <[email protected]> wrote:

> Okay, another thing I’ve spotted - you’re using amplua as both an association 
> and a column:
> 
>     indexes amplua, :sortable => true
> 
>     has amplua.name, :as => :amplua
> 
> Is amplua a column, or an association?
> 
> *And* your ‘as’ options for both attributes are missing the : prefix to 
> ensure they’re symbols.
> 
> On 10 Nov 2014, at 12:47 am, Peter Chudinov <[email protected]> wrote:
> 
>> Well, I did, and still it fails:
>> 
>> ERROR: duplicate attribute name: name
>> ERROR: index 'player_core': failed to configure some of the sources, will 
>> not index.
>> 
>> Here is modified source:
>> 
>> ThinkingSphinx::Index.define :player, :with => :active_record do
>> indexes name, :as => :player_name, :sortable => true
>> indexes amplua, :sortable => true
>> 
>> has real_team.name, as => :real_team_name
>> has amplua.name, as => :amplua
>> end
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Thinking Sphinx" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/thinking-sphinx.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to