Skip to content

Commit 0b7220a

Browse files
committed
Update readme to reflect new versions
1 parent f47145a commit 0b7220a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Compatibility
2828
The library is compatible with all Elasticsearch versions since ``0.90.x`` but you
2929
**have to use a matching major version**:
3030

31+
For **Elasticsearch 7.0** and later, use the major version 7 (``7.x.y``) of the
32+
library.
33+
3134
For **Elasticsearch 6.0** and later, use the major version 6 (``6.x.y``) of the
3235
library.
3336

@@ -40,8 +43,11 @@ library, and so on.
4043
The recommended way to set your requirements in your `setup.py` or
4144
`requirements.txt` is::
4245

46+
# Elasticsearch 7.x
47+
elasticsearch>=7.0.0,<8.0.0
48+
4349
# Elasticsearch 6.x
44-
elasticsearch>=6.0.0,<7.0.0
50+
elasticsearch6>=6.0.0,<7.0.0
4551

4652
# Elasticsearch 5.x
4753
elasticsearch>=5.0.0,<6.0.0
@@ -77,11 +83,11 @@ Simple use-case::
7783
{u'acknowledged': True}
7884

7985
# datetimes will be serialized
80-
>>> es.index(index="my-index", doc_type="test-type", id=42, body={"any": "data", "timestamp": datetime.now()})
86+
>>> es.index(index="my-index", id=42, body={"any": "data", "timestamp": datetime.now()})
8187
{u'_id': u'42', u'_index': u'my-index', u'_type': u'test-type', u'_version': 1, u'ok': True}
8288

8389
# but not deserialized
84-
>>> es.get(index="my-index", doc_type="test-type", id=42)['_source']
90+
>>> es.get(index="my-index", id=42)['_source']
8591
{u'any': u'data', u'timestamp': u'2013-05-12T19:45:31.804229'}
8692

8793
`Full documentation`_.
@@ -125,7 +131,7 @@ The client's features include:
125131
License
126132
-------
127133

128-
Copyright 2017 Elasticsearch
134+
Copyright 2019 Elasticsearch
129135

130136
Licensed under the Apache License, Version 2.0 (the "License");
131137
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)