Sha256: 4bf6eacedf13f640de19962056cd686f21055fc0989447620d8d98e8f2386820

Contents?: true

Size: 252 Bytes

Versions: 5

Compression:

Stored size: 252 Bytes

Contents

class PostWithOnlySomeAttributesTriggeringReindex < ActiveRecord::Base
  def self.table_name
    'posts'
  end

  searchable :only_reindex_attribute_changes_of => [ :title, :body ] do
    string :title
    text :body, :more_like_this => true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sunspot_rails-2.7.1 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.7.0 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.6.0 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.5.0 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.4.0 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb