Skip to content

Commit 028c6f1

Browse files
authored
Remove '_type' from helpers documentation
1 parent e1870d9 commit 028c6f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/helpers.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ in several formats. The most common one is the same as returned by
2626
2727
{
2828
'_index': 'index-name',
29-
'_type': 'document',
3029
'_id': 42,
3130
'_routing': 5,
3231
'pipeline': 'my-ingest-pipeline',
@@ -57,13 +56,11 @@ action (``_op_type`` defaults to ``index``):
5756
{
5857
'_op_type': 'delete',
5958
'_index': 'index-name',
60-
'_type': 'document',
6159
'_id': 42,
6260
}
6361
{
6462
'_op_type': 'update',
6563
'_index': 'index-name',
66-
'_type': 'document',
6764
'_id': 42,
6865
'doc': {'question': 'The life, universe and everything.'}
6966
}
@@ -83,7 +80,6 @@ document is like ``{"word": "<myword>"}``.
8380
for word in mywords:
8481
yield {
8582
"_index": "mywords",
86-
"_type": "document",
8783
"doc": {"word": word},
8884
}
8985
@@ -114,7 +110,7 @@ If you don't care about the results, you can use deque from collections:
114110

115111
When reading raw json strings from a file, you can also pass them in
116112
directly (without decoding to dicts first). In that case, however, you lose
117-
the ability to specify anything (index, type, even id) on a per-record
113+
the ability to specify anything (index, op_type and even id) on a per-record
118114
basis, all documents will just be sent to elasticsearch to be indexed
119115
as-is.
120116

0 commit comments

Comments
 (0)