@@ -142,45 +142,6 @@ def streaming_bulk(client, actions, chunk_size=500, max_chunk_bytes=100 * 1014 *
142142 bulk that returns summary information about the bulk operation once the
143143 entire input is consumed and sent.
144144
145- This function expects the action to be in the format as returned by
146- :meth:`~elasticsearch.Elasticsearch.search`, for example::
147-
148- {
149- '_index': 'index-name',
150- '_type': 'document',
151- '_id': 42,
152- '_parent': 5,
153- '_ttl': '1d',
154- '_source': {
155- ...
156- }
157- }
158-
159- Alternatively, if `_source` is not present, it will pop all metadata fields
160- from the doc and use the rest as the document data.
161-
162- When reading raw json strings from a file, you can also pass them in. In
163- that case, however, you lose the ability to specify anything (index, type,
164- even id) on a per-record basis, all documents will just be sent to
165- elasticsearch to be indexed as-is.
166-
167- The :meth:`~elasticsearch.Elasticsearch.bulk` api accepts `index`, `create`,
168- `delete`, and `update` actions. Use the `_op_type` field to specify an
169- action (`_op_type` defaults to `index`)::
170-
171- {
172- '_op_type': 'delete',
173- '_index': 'index-name',
174- '_type': 'document',
175- '_id': 42,
176- }
177- {
178- '_op_type': 'update',
179- '_index': 'index-name',
180- '_type': 'document',
181- '_id': 42,
182- 'doc': {'question': 'The life, universe and everything.'}
183- }
184145
185146 :arg client: instance of :class:`~elasticsearch.Elasticsearch` to use
186147 :arg actions: iterable containing the actions to be executed
@@ -208,8 +169,8 @@ def bulk(client, actions, stats_only=False, **kwargs):
208169 information - number of successfully executed actions and either list of
209170 errors or number of errors if `stats_only` is set to `True`.
210171
211- See :func:`~elasticsearch.helpers.streaming_bulk` for more information
212- and accepted formats.
172+ See :func:`~elasticsearch.helpers.streaming_bulk` for more accepted
173+ parameters
213174
214175 :arg client: instance of :class:`~elasticsearch.Elasticsearch` to use
215176 :arg actions: iterator containing the actions
@@ -240,7 +201,7 @@ def parallel_bulk(client, actions, thread_count=4, chunk_size=500,
240201 max_chunk_bytes = 100 * 1014 * 1024 ,
241202 expand_action_callback = expand_action , ** kwargs ):
242203 """
243- Parallel version of the bulk helper.
204+ Parallel version of the bulk helper run in multiple threads at once .
244205
245206 :arg client: instance of :class:`~elasticsearch.Elasticsearch` to use
246207 :arg actions: iterator containing the actions
0 commit comments