fix faulty example (#256)
single-quoted string spanning multiple lines leads to grammatical error Signed-off-by: Minh Le <[email protected]> Signed-off-by: Minh Le <[email protected]>
This commit is contained in:
+6
-6
@@ -123,12 +123,12 @@ print(response)
|
|||||||
|
|
||||||
### Adding documents in bulk
|
### Adding documents in bulk
|
||||||
```python
|
```python
|
||||||
docs = '{"index": {"_index": "index-2022-06-08", "_id": "1"}} \n
|
docs = '''{"index": {"_index": "index-2022-06-08", "_id": "1"}}
|
||||||
{"name": "foo"} \n
|
{"name": "foo"}
|
||||||
{"index": {"_index": "index-2022-06-09", "_id": "2"}} \n
|
{"index": {"_index": "index-2022-06-09", "_id": "2"}}
|
||||||
{"name": "bar"} \n
|
{"name": "bar"}
|
||||||
{"index": {"_index": "index-2022-06-10", "_id": "3"}} \n
|
{"index": {"_index": "index-2022-06-10", "_id": "3"}}
|
||||||
{"name": "baz"}'
|
{"name": "baz"}'''
|
||||||
|
|
||||||
response = client.bulk(docs)
|
response = client.bulk(docs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user