Skip to content

Commit 8bb6b1a

Browse files
committed
[MODEL] Update Readme text about STI deprecation
1 parent afaf918 commit 8bb6b1a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

elasticsearch-model/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,14 +743,15 @@ curl -# https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticse
743743
SERVER=start TEST_CLUSTER_COMMAND=$PWD/tmp/elasticsearch-1.0.0.RC1/bin/elasticsearch bundle exec rake test:all
744744
```
745745

746-
### Single Table Inheritance support
746+
### Single Table Inheritance deprecation
747747

748-
Versions < 7.0.0 of this gem supported inheritance-- more specifically, `Single Table Inheritance`. With this feature,
748+
`Single Table Inheritance` has been supported until the 6.x series of this gem. With this feature,
749749
settings on a parent model could be inherited by a child model leading to different model documents being indexed
750750
into the same Elasticsearch index. This feature depended on the ability to set a `type` for a document in Elasticsearch.
751751
The Elasticsearch team has deprecated support for `types`, as is described [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html)
752-
so this gem has also removed support as it encourages an anti-pattern. Please save different model documents in
753-
separate indices or implement an artificial `type` field manually in each document.
752+
This gem will also remove support for types and Single Table Inheritance in version 7.0 as it encourages an anti-pattern.
753+
Please save different model documents in separate indices or implement an artificial `type` field manually in each
754+
document.
754755

755756
## License
756757

0 commit comments

Comments
 (0)