@@ -98,7 +98,7 @@ repository.delete(note)
98
98
=> {" found" =>true , " _index" =>" repository" , " _type" =>" note" , " _id" =>" 1" , " _version" =>2 }
99
99
```
100
100
101
- The repository module provides a number of features and facilities to configure and customize the behaviour :
101
+ The repository module provides a number of features and facilities to configure and customize the behavior :
102
102
103
103
* Configuring the Elasticsearch [ client] ( https://github.com/elasticsearch/elasticsearch-ruby#usage ) being used
104
104
* Setting the index name, document type, and object class for deserialization
@@ -126,7 +126,7 @@ repository = Elasticsearch::Persistence::Repository.new do
126
126
# Set a custom document type
127
127
type :my_note
128
128
129
- # Specify the class to inicialize when deserializing documents
129
+ # Specify the class to initialize when deserializing documents
130
130
klass Note
131
131
132
132
# Configure the settings and mappings for the Elasticsearch index
@@ -494,7 +494,7 @@ class Article
494
494
495
495
# Execute code after saving the model.
496
496
#
497
- after_save { puts " Successfuly saved: #{ self } " }
497
+ after_save { puts " Successfully saved: #{ self } " }
498
498
end
499
499
```
500
500
@@ -573,7 +573,7 @@ Any callbacks defined in the model will be triggered during the persistence oper
573
573
574
574
``` ruby
575
575
article.save
576
- # Successfuly saved: #<Article {...}>
576
+ # Successfully saved: #<Article {...}>
577
577
```
578
578
579
579
The model also supports familiar ` find_in_batches ` and ` find_each ` methods to efficiently
0 commit comments