Skip to content

Commit 1f78ee4

Browse files
committed
Fixing documentation
1 parent b9b061b commit 1f78ee4

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.rst

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,26 @@ Features
2727

2828
- Django >= 1.10
2929
- Python 2.7, 3.5, 3.6, 3.7
30-
- Elasticsearch >= 6.0 < 7.0
30+
31+
**Elasticsearch Compatibility:**
32+
The library is compatible with all Elasticsearch versions since 5.x **but you have to use a matching major version:**
33+
34+
- For Elasticsearch 7.0 and later, use the major version 7 (7.x.y) of the library.
35+
36+
- For Elasticsearch 6.0 and later, use the major version 6 (6.x.y) of the library.
37+
38+
- For Elasticsearch 5.0 and later, use the major version 0.5 (0.5.x) of the library.
39+
40+
.. code-block:: python
41+
42+
# Elasticsearch 7.x
43+
elasticsearch-dsl>=7.0.0,<8.0.0
44+
45+
# Elasticsearch 6.x
46+
elasticsearch-dsl>=6.0.0,<7.0.0
47+
48+
# Elasticsearch 5.x
49+
elasticsearch-dsl>=0.5.1,<6.0.0
3150
3251
.. _Search: http://elasticsearch-dsl.readthedocs.io/en/stable/search_dsl.html
3352

0 commit comments

Comments
 (0)