README.md in elasticsearch-model-0.1.5 vs README.md in elasticsearch-model-0.1.6

- old
+ new

@@ -144,11 +144,11 @@ ```ruby Article.import # => 0 ``` -It's possible to import only records from a specific `scope`, transform the batch with the `transform` +It's possible to import only records from a specific `scope` or `query`, transform the batch with the `transform` and `preprocess` options, or re-create the index by deleting it and creating it with correct mapping with the `force` option -- look for examples in the method documentation. No errors were reported during importing, so... let's search the index! @@ -420,10 +420,10 @@ after_save { logger.debug ["Updating document... ", index_document ].join } after_destroy { logger.debug ["Deleting document... ", delete_document].join } end ``` -For ActiveRecord-based models, you need to hook into the `after_commit` callback, to protect +For ActiveRecord-based models, use the `after_commit` callback to protect your data against inconsistencies caused by transaction rollbacks: ```ruby class Article < ActiveRecord::Base include Elasticsearch::Model