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