Skip to content

Commit f0f3665

Browse files
committed
update the docs for 7
1 parent 2efba7e commit f0f3665

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/index.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Compatibility
1717
The library is compatible with all Elasticsearch versions since ``0.90.x`` but you
1818
**have to use a matching major version**:
1919

20+
For **Elasticsearch 7.0** and later, use the major version 7 (``7.x.y``) of the
21+
library.
22+
2023
For **Elasticsearch 6.0** and later, use the major version 6 (``6.x.y``) of the
2124
library.
2225

@@ -29,6 +32,9 @@ library, and so on.
2932
The recommended way to set your requirements in your `setup.py` or
3033
`requirements.txt` is::
3134

35+
# Elasticsearch 7.x
36+
elasticsearch>=7.0.0,<8.0.0
37+
3238
# Elasticsearch 6.x
3339
elasticsearch>=6.0.0,<7.0.0
3440

@@ -39,7 +45,7 @@ The recommended way to set your requirements in your `setup.py` or
3945
elasticsearch>=2.0.0,<3.0.0
4046

4147
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``.
4349

4450
Installation
4551
------------
@@ -63,10 +69,10 @@ Example Usage
6369
'text': 'Elasticsearch: cool. bonsai cool.',
6470
'timestamp': datetime.now(),
6571
}
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)
6773
print(res['result'])
6874

69-
res = es.get(index="test-index", doc_type='tweet', id=1)
75+
res = es.get(index="test-index", id=1)
7076
print(res['_source'])
7177

7278
es.indices.refresh(index="test-index")

0 commit comments

Comments
 (0)