Skip to content

Commit c1cebfe

Browse files
committed
Fixed doc string for doc_type method
Fixes elastic#21, thanks lvyaojia!
1 parent 15e2c43 commit c1cebfe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

elasticsearch_dsl/search.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,13 @@ def index(self, *index):
253253

254254
def doc_type(self, *doc_type):
255255
"""
256-
Set the type to search through. You can supply a single value or a
257-
list. If no index is supplied (or an empty value) any information
256+
Set the type to search through. You can supply a single value or
257+
multiple. If no index is supplied (or an empty value) any information
258258
stored on the instance will be erased.
259+
260+
Example:
261+
262+
s = Search().doc_type('product', 'store')
259263
"""
260264
# .doc_type() resets
261265
s = self._clone()

0 commit comments

Comments
 (0)