README.md in elastic_mapper-0.1.0 vs README.md in elastic_mapper-0.2.1
- old
+ new
@@ -72,9 +72,23 @@
mapping :title, :abstract
mapping :publication_date, :type => :date
end
```
+Deleting a Document
+-------------------
+
+To remove a document from ElasticSearch, use the `delete_from_index` method.
+
+```ruby
+class Article < ActiveRecord::Base
+
+ include ElasticMapper
+
+ after_destroy :delete_from_index
+end
+```
+
Searching
---------
ElasticMapper adds the `search` method to your ActiveModel classes. Results will be returned as instances of your ActiveModel class.