@@ -28,6 +28,9 @@ Compatibility
28
28
The library is compatible with all Elasticsearch versions since ``0.90.x`` but you
29
29
**have to use a matching major version**:
30
30
31
+ For **Elasticsearch 7.0** and later, use the major version 7 (``7.x.y``) of the
32
+ library.
33
+
31
34
For **Elasticsearch 6.0** and later, use the major version 6 (``6.x.y``) of the
32
35
library.
33
36
@@ -40,8 +43,11 @@ library, and so on.
40
43
The recommended way to set your requirements in your `setup.py` or
41
44
`requirements.txt` is::
42
45
46
+ # Elasticsearch 7.x
47
+ elasticsearch>=7.0.0,<8.0.0
48
+
43
49
# Elasticsearch 6.x
44
- elasticsearch >=6.0.0,<7.0.0
50
+ elasticsearch6 >=6.0.0,<7.0.0
45
51
46
52
# Elasticsearch 5.x
47
53
elasticsearch>=5.0.0,<6.0.0
@@ -77,11 +83,11 @@ Simple use-case::
77
83
{u'acknowledged': True}
78
84
79
85
# 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()})
81
87
{u'_id': u'42', u'_index': u'my-index', u'_type': u'test-type', u'_version': 1, u'ok': True}
82
88
83
89
# 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']
85
91
{u'any': u'data', u'timestamp': u'2013-05-12T19:45:31.804229'}
86
92
87
93
`Full documentation`_.
@@ -125,7 +131,7 @@ The client's features include:
125
131
License
126
132
-------
127
133
128
- Copyright 2017 Elasticsearch
134
+ Copyright 2019 Elasticsearch
129
135
130
136
Licensed under the Apache License, Version 2.0 (the "License");
131
137
you may not use this file except in compliance with the License.
0 commit comments