Skip to content

Commit 147ff11

Browse files
authored
Remove mentions of doc_type in Mapping documentation
1 parent fc14803 commit 147ff11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.rst

Lines changed: 2 additions & 2 deletions
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)