Hi Kirill

You can put multiple index definitions in any app/indices/*.rb file, and use 
the :name option to distinguish between two indices on the one model:

  ThinkingSphinx::Index.define :article, :with => :active_record, :name => 
'primary' do
    #
  end

  ThinkingSphinx::Index.define :article, :with => :active_record, :name => 
'secondary' do
    #
  end

Cheers

-- 
Pat

On 08/02/2013, at 2:03 AM, Kirill Moiseev wrote:

> Hi!
> 
> How can I implement multiple indexes for one model in thinking-sphinx
> 3?
> I can't find it in documentation.
> 
> 
> Thanks!
> 
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 



-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to