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:
Minh Le
2023-01-03 12:29:49 -08:00
committed by GitHub
parent e6951d9824
commit 9f84873c01
+6 -6
View File
@@ -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)