We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8859ae commit 1088670Copy full SHA for 1088670
elasticsearch-model/README.md
@@ -365,6 +365,10 @@ response.results.first.title
365
For proper search engine function, it's often necessary to configure the index properly.
366
The `Elasticsearch::Model` integration provides class methods to set up index settings and mappings.
367
368
+**NOTE**: Elasticsearch will automatically create an index when a document is indexed,
369
+ with default settings and mappings. Create the index in advance with the `create_index!`
370
+ method, so your index configuration is respected.
371
+
372
```ruby
373
class Article
374
settings index: { number_of_shards: 1 } do
0 commit comments