Skip to content

Commit 1fa6cb8

Browse files
authored
Add additional alternate examples
1 parent 028c6f1 commit 1fa6cb8

17 files changed

+48
-15
lines changed

docs/examples/168bfdde773570cfc6dd3ab3574e413b.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// search/search.asciidoc:400
1+
// search/search.asciidoc:404
22

33
[source, python]
44
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// docs/bulk.asciidoc:544
2+
3+
[source, python]
4+
----
5+
resp = client.bulk(
6+
body=[
7+
{"update": {"_id": "5", "_index": "index1"}},
8+
{"doc": {"my_field": "foo"}},
9+
{"update": {"_id": "6", "_index": "index1"}},
10+
{"doc": {"my_field": "foo"}},
11+
{"create": {"_id": "7", "_index": "index1"}},
12+
{"my_field": "foo"},
13+
],
14+
)
15+
print(resp)
16+
----

docs/examples/1b8caf0a6741126c6d0ad83b56fce290.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// indices/templates.asciidoc:138
1+
// indices/templates.asciidoc:136
22

33
[source, python]
44
----

docs/examples/43682666e1abcb14770c99f02eb26a0d.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// search/search.asciidoc:415
1+
// search/search.asciidoc:419
22

33
[source, python]
44
----

docs/examples/46658f00edc4865dfe472a392374cd0f.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// indices/templates.asciidoc:241
1+
// indices/templates.asciidoc:239
22

33
[source, python]
44
----

docs/examples/609260ad1d5998be2ca09ff1fe237efa.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping.asciidoc:211
1+
// mapping.asciidoc:204
22

33
[source, python]
44
----

docs/examples/71ba9033107882f61cdc3b32fc73568d.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping.asciidoc:173
1+
// mapping.asciidoc:166
22

33
[source, python]
44
----

docs/examples/8022e6a690344035b6472a43a9d122e0.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// search/search.asciidoc:409
1+
// search/search.asciidoc:413
22

33
[source, python]
44
----

docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/bulk.asciidoc:405
1+
// docs/bulk.asciidoc:522
22

33
[source, python]
44
----

docs/examples/9166cf38427d5cde5d2ec12a2012b669.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// indices/templates.asciidoc:223
1+
// indices/templates.asciidoc:221
22

33
[source, python]
44
----

docs/examples/99a52be903945b17e734a1d02a57e958.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping.asciidoc:257
1+
// mapping.asciidoc:250
22

33
[source, python]
44
----

docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/bulk.asciidoc:294
1+
// docs/bulk.asciidoc:411
22

33
[source, python]
44
----

docs/examples/b5f95bc097a201b29c7200fc8d3d31c1.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// indices/templates.asciidoc:172
1+
// indices/templates.asciidoc:170
22

33
[source, python]
44
----

docs/examples/be49260e1b3496c4feac38c56ebb0669.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// search/search.asciidoc:342
1+
// search/search.asciidoc:346
22

33
[source, python]
44
----
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// docs/bulk.asciidoc:623
2+
3+
[source, python]
4+
----
5+
resp = client.bulk(
6+
filter_path="items.*.error",
7+
body=[
8+
{"update": {"_id": "5", "_index": "index1"}},
9+
{"doc": {"my_field": "baz"}},
10+
{"update": {"_id": "6", "_index": "index1"}},
11+
{"doc": {"my_field": "baz"}},
12+
{"update": {"_id": "7", "_index": "index1"}},
13+
{"doc": {"my_field": "baz"}},
14+
],
15+
)
16+
print(resp)
17+
----

docs/examples/d8b2a88b5eca99d3691ad3cd40266736.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping.asciidoc:144
1+
// mapping.asciidoc:137
22

33
[source, python]
44
----

docs/examples/f5569945024b9d664828693705c27c1a.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// search/search.asciidoc:388
1+
// search/search.asciidoc:392
22

33
[source, python]
44
----

0 commit comments

Comments
 (0)