@@ -234,7 +234,7 @@ Document index
234234.. code-block :: python
235235
236236 from django.conf import settings
237- from django_elasticsearch_dsl import DocType , Index, fields
237+ from django_elasticsearch_dsl import Document , Index, fields
238238 from elasticsearch_dsl import analyzer
239239
240240 from books.models import Book
@@ -257,7 +257,7 @@ Document index
257257
258258
259259 @INDEX.doc_type
260- class BookDocument (DocType ):
260+ class BookDocument (Document ):
261261 """ Book Elasticsearch document."""
262262
263263 id = fields.IntegerField(attr = ' id' )
@@ -326,7 +326,7 @@ Document index
326326 class Meta (object ):
327327 """ Meta options."""
328328
329- model = Book # The model associate with this DocType
329+ model = Book # The model associate with this Document
330330
331331 Sample serializer
332332-----------------
@@ -964,7 +964,7 @@ documents using ``fields.CompletionField``.
964964
965965 from django.conf import settings
966966
967- from django_elasticsearch_dsl import DocType , Index, fields
967+ from django_elasticsearch_dsl import Document , Index, fields
968968
969969 from books.models import Publisher
970970
@@ -979,7 +979,7 @@ documents using ``fields.CompletionField``.
979979
980980
981981 @INDEX.doc_type
982- class PublisherDocument (DocType ):
982+ class PublisherDocument (Document ):
983983 """ Publisher Elasticsearch document."""
984984
985985 id = fields.IntegerField(attr = ' id' )
@@ -1028,7 +1028,7 @@ documents using ``fields.CompletionField``.
10281028 class Meta (object ):
10291029 """ Meta options."""
10301030
1031- model = Publisher # The model associate with this DocType
1031+ model = Publisher # The model associate with this Document
10321032
10331033 After that the ``name.suggest ``, ``city.suggest ``, ``state_province.suggest ``
10341034and ``country.suggest `` fields would be available for suggestions feature.
@@ -1324,7 +1324,7 @@ In that case, the document definition should be altered as follows:
13241324
13251325.. code-block :: python
13261326
1327- class BookDocument (DocType ):
1327+ class BookDocument (Document ):
13281328
13291329 # ...
13301330
@@ -1418,7 +1418,7 @@ In that case, the document definition should be altered as follows:
14181418
14191419.. code-block :: python
14201420
1421- class AddressDocument (DocType ):
1421+ class AddressDocument (Document ):
14221422
14231423 # ...
14241424
@@ -1513,7 +1513,7 @@ Document definition
15131513
15141514 from django.conf import settings
15151515
1516- from django_elasticsearch_dsl import DocType , Index, fields
1516+ from django_elasticsearch_dsl import Document , Index, fields
15171517
15181518 from books.models import Book
15191519
@@ -1527,7 +1527,7 @@ Document definition
15271527 )
15281528
15291529 @INDEX.doc_type
1530- class BookDocument (DocType ):
1530+ class BookDocument (Document ):
15311531 """ Book Elasticsearch document."""
15321532 # ID
15331533 id = fields.IntegerField(attr = ' id' )
@@ -1608,7 +1608,7 @@ Document definition
16081608 class Meta (object ):
16091609 """ Meta options."""
16101610
1611- model = Book # The model associate with this DocType
1611+ model = Book # The model associate with this Document
16121612
16131613 ViewSet definition
16141614^^^^^^^^^^^^^^^^^^
@@ -2022,7 +2022,7 @@ The following example indicates Ngram analyzer/filter usage.
20222022.. code-block :: python
20232023
20242024 from django.conf import settings
2025- from django_elasticsearch_dsl import DocType , Index, fields
2025+ from django_elasticsearch_dsl import Document , Index, fields
20262026
20272027 from elasticsearch_dsl import analyzer
20282028 from elasticsearch_dsl.analysis import token_filter
@@ -2052,7 +2052,7 @@ The following example indicates Ngram analyzer/filter usage.
20522052 )
20532053
20542054 @INDEX.doc_type
2055- class BookDocument (DocType ):
2055+ class BookDocument (Document ):
20562056 """ Book Elasticsearch document."""
20572057
20582058 # In different parts of the code different fields are used. There are
@@ -2083,7 +2083,7 @@ The following example indicates Ngram analyzer/filter usage.
20832083 class Meta (object ):
20842084 """ Meta options."""
20852085
2086- model = Book # The model associate with this DocType
2086+ model = Book # The model associate with this Document
20872087
20882088 ViewSet definition
20892089~~~~~~~~~~~~~~~~~~
0 commit comments