File: 9250ac57ec81d5192e8ad4c462438489.asciidoc

package info (click to toggle)
python-elasticsearch 9.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,728 kB
  • sloc: python: 104,053; makefile: 151; javascript: 75
file content (39 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// This file is autogenerated, DO NOT EDIT
// inference/service-jinaai.asciidoc:204

[source, python]
----
resp = client.bulk(
    index="jinaai-index",
    operations=[
        {
            "index": {
                "_index": "jinaai-index",
                "_id": "1"
            }
        },
        {
            "content": "Sarah Johnson is a talented marine biologist working at the Oceanographic Institute. Her groundbreaking research on coral reef ecosystems has garnered international attention and numerous accolades."
        },
        {
            "index": {
                "_index": "jinaai-index",
                "_id": "2"
            }
        },
        {
            "content": "She spends months at a time diving in remote locations, meticulously documenting the intricate relationships between various marine species. "
        },
        {
            "index": {
                "_index": "jinaai-index",
                "_id": "3"
            }
        },
        {
            "content": "Her dedication to preserving these delicate underwater environments has inspired a new generation of conservationists."
        }
    ],
)
print(resp)
----