Skip to content

Commit e4801e1

Browse files
committed
[7.x] Remove mentions of doc_type in Mapping documentation
1 parent f0b2d89 commit e4801e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pattern to the query dsl:
5353
from elasticsearch_dsl import Keyword, Mapping, Nested, Text
5454
5555
# name your type
56-
m = Mapping('my-type')
56+
m = Mapping()
5757
5858
# add fields
5959
m.field('title', 'text')
@@ -93,7 +93,7 @@ directly from an existing type:
9393
.. code:: python
9494
9595
# get the mapping from our production cluster
96-
m = Mapping.from_es('my-index', 'my-type', using='prod')
96+
m = Mapping.from_es('my-index', using='prod')
9797
9898
# update based on data in QA cluster
9999
m.update_from_es('my-index', using='qa')

0 commit comments

Comments
 (0)