@@ -17,6 +17,9 @@ Compatibility
17
17
The library is compatible with all Elasticsearch versions since ``0.90.x `` but you
18
18
**have to use a matching major version **:
19
19
20
+ For **Elasticsearch 7.0 ** and later, use the major version 7 (``7.x.y ``) of the
21
+ library.
22
+
20
23
For **Elasticsearch 6.0 ** and later, use the major version 6 (``6.x.y ``) of the
21
24
library.
22
25
@@ -29,6 +32,9 @@ library, and so on.
29
32
The recommended way to set your requirements in your `setup.py ` or
30
33
`requirements.txt ` is::
31
34
35
+ # Elasticsearch 7.x
36
+ elasticsearch>=7.0.0,<8.0.0
37
+
32
38
# Elasticsearch 6.x
33
39
elasticsearch>=6.0.0,<7.0.0
34
40
@@ -39,7 +45,7 @@ The recommended way to set your requirements in your `setup.py` or
39
45
elasticsearch>=2.0.0,<3.0.0
40
46
41
47
If you have a need to have multiple versions installed at the same time older
42
- versions are also released as ``elasticsearch2 `` and ``elasticsearch5 ``.
48
+ versions are also released as ``elasticsearch2 ``, `` elasticsearch5 `` and ``elasticsearch6 ``.
43
49
44
50
Installation
45
51
------------
@@ -63,10 +69,10 @@ Example Usage
63
69
'text': 'Elasticsearch: cool. bonsai cool.',
64
70
'timestamp': datetime.now(),
65
71
}
66
- res = es.index(index="test-index", doc_type='tweet', id=1, body=doc)
72
+ res = es.index(index="test-index", id=1, body=doc)
67
73
print(res['result'])
68
74
69
- res = es.get(index="test-index", doc_type='tweet', id=1)
75
+ res = es.get(index="test-index", id=1)
70
76
print(res['_source'])
71
77
72
78
es.indices.refresh(index="test-index")
0 commit comments