Skip to content

Commit

Permalink
Remove mentions of doc_type in Mapping documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Dec 7, 2020
1 parent fc14803 commit 147ff11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pattern to the query dsl:
from elasticsearch_dsl import Keyword, Mapping, Nested, Text
# name your type
m = Mapping('my-type')
m = Mapping()
# add fields
m.field('title', 'text')
Expand Down Expand Up @@ -93,7 +93,7 @@ directly from an existing type:
.. code:: python
# get the mapping from our production cluster
m = Mapping.from_es('my-index', 'my-type', using='prod')
m = Mapping.from_es('my-index', using='prod')
# update based on data in QA cluster
m.update_from_es('my-index', using='qa')
Expand Down

0 comments on commit 147ff11

Please sign in to comment.