You'll need to create your own rake task to do this, but the code within it is simple enough:
ThinkingSphinx::Configuration.instance.controller.index 'foo_core' If you want to index more than one index, you can pass through as many index names as you like: ThinkingSphinx::Configuration.instance.controller.index 'foo_core', 'bar_core' This code will work with TS v1/2/3. Cheers -- Pat On 12/03/2013, at 8:52 AM, Ngan wrote: > My model has 2 indexes. Is there a way to run "rake ts:index" and have it > re-index just 1 of those indexes? > > e.g. rake ts:index INDEX=foo_core > > Thanks, > Ngan > > -- > 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.
