Hi Ashish Try the following instead:
ThinkingSphinx.search(:indices => ['index_1_core', 'index_1_delta']) I'm currently thinking about re-adding distributed indices to cover each core/delta pair, as this is the second time it's been raised lately. Also: your attributes don't need the :sortable setting, as they are inherently sortable by their nature. -- Pat On 16/09/2013, at 9:08 PM, Ashish Tajane wrote: > Hi, > > I have a model in which I have two indexes. The second index has one extra > field. > When I pass first index to the search, it is still able to search through the > extra field present in second field. > So, from the sample code below, if I pass index as 'index_1', it is still > able to search on the 'sent_to' email field. > > Sample Code > > ThinkingSphinx::Index.define(:model, name: 'index_1', with: :active_record, > delta: ThinkingSphinx::Deltas::DelayedDelta) do > has :created_at, :sortable => true > has :expires_on, :sortable => true > has :program_id > end > > ThinkingSphinx::Index.define(:model, name: 'index_2', with: :active_record, > delta: ThinkingSphinx::Deltas::DelayedDelta) do > indexes :sent_to, :as => :recipient_email, :sortable => true > has :created_at, :sortable => true > has :expires_on, :sortable => true > has :program_id > end > > > I am passing index name as :index => 'index_1' > This was working in older version. Now it doesn't seem to working.. has the > option changed or am I missing something? > Any help appreciated... > > > Thanks and Regards > -- > Ashish Tajane > > -- > 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/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. For more options, visit https://groups.google.com/groups/opt_out.
