Skip to content

Commit 1088670

Browse files
Martin Samami ッkarmi
Martin Samami ッ
authored andcommitted
[MODEL] Added instructions about creating the index into the README
Closes elastic#686 Closes elastic#675
1 parent d8859ae commit 1088670

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elasticsearch-model/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ response.results.first.title
365365
For proper search engine function, it's often necessary to configure the index properly.
366366
The `Elasticsearch::Model` integration provides class methods to set up index settings and mappings.
367367

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+
368372
```ruby
369373
class Article
370374
settings index: { number_of_shards: 1 } do

0 commit comments

Comments
 (0)