We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b2d89 commit e4801e1Copy full SHA for e4801e1
docs/api.rst
@@ -53,7 +53,7 @@ pattern to the query dsl:
53
from elasticsearch_dsl import Keyword, Mapping, Nested, Text
54
55
# name your type
56
- m = Mapping('my-type')
+ m = Mapping()
57
58
# add fields
59
m.field('title', 'text')
@@ -93,7 +93,7 @@ directly from an existing type:
93
.. code:: python
94
95
# get the mapping from our production cluster
96
- m = Mapping.from_es('my-index', 'my-type', using='prod')
+ m = Mapping.from_es('my-index', using='prod')
97
98
# update based on data in QA cluster
99
m.update_from_es('my-index', using='qa')
0 commit comments