I am a newbie to elastic Search and Tire in Ruby on Rails. Watched the railscasts from ryan bates and helped me to get going. Tire is a great gem and has functionality to delta indexing. Assuming i have a mapping like the following, will Tire automatically delta index the model associations if an association value is edited/ deleted. For Example, Assume i have index mapping like the following,
mapping do
indexes :id, :type => 'integer', :index => :not_analyzed
indexes :col_2, :type => 'integer', :index => :not_analyzed
indexes :col_3, :type => 'date'
indexes :col_4, :type => 'date'
indexes :model_2 do
indexes :name, :type => 'string', :analyzer => 'whitespace'
indexes :association_col_2, :type => 'string', :index => :not_analyzed
end
end
When the value of model_2.association_col_2 changes will tire automatically delta index the corresponding row in the model defined the mapping for ? How should i approach delta indexing the model on association model value changes ?
Thanks in advance