Skip to content

Commit cad31e7

Browse files
committed
[Docs] Test updating examples generation script
1 parent ff2ef4d commit cad31e7

26 files changed

+217
-28
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// query-dsl/regexp-query.asciidoc:23
2+
3+
[source, python]
4+
----
5+
resp = client.search(
6+
body={
7+
"query": {
8+
"regexp": {
9+
"user.id": {
10+
"value": "k.*y",
11+
"flags": "ALL",
12+
"case_insensitive": True,
13+
"max_determinized_states": 10000,
14+
"rewrite": "constant_score_blended",
15+
}
16+
}
17+
}
18+
},
19+
)
20+
print(resp)
21+
----

docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// query-dsl/bool-query.asciidoc:153
1+
// query-dsl/bool-query.asciidoc:156
22

33
[source, python]
44
----

docs/examples/178c920d5e8ec0071f77290fa059802c.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// indices/update-settings.asciidoc:122
1+
// indices/update-settings.asciidoc:132
22

33
[source, python]
44
----

docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc

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

33
[source, python]
44
----

docs/examples/20005d8a6555b259b299d862cd218701.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// query-dsl/match-query.asciidoc:175
1+
// query-dsl/match-query.asciidoc:186
22

33
[source, python]
44
----

docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// query-dsl/match-query.asciidoc:241
1+
// query-dsl/match-query.asciidoc:252
22

33
[source, python]
44
----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// getting-started.asciidoc:245
2+
3+
[source, python]
4+
----
5+
resp = client.search(
6+
index="books",
7+
body={"query": {"match": {"name": "brave"}}},
8+
)
9+
print(resp)
10+
----

docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// query-dsl/bool-query.asciidoc:181
1+
// query-dsl/bool-query.asciidoc:184
22

33
[source, python]
44
----

docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// query-dsl/match-query.asciidoc:219
1+
// query-dsl/match-query.asciidoc:230
22

33
[source, python]
44
----
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// docs/reindex.asciidoc:1095
2+
3+
[source, python]
4+
----
5+
resp = client.reindex(
6+
body=
7+
{
8+
"source": {
9+
"remote": {
10+
"host": "http://otherhost:9200",
11+
...,
12+
"socket_timeout": "1m",
13+
"connect_timeout": "10s"
14+
},
15+
"index": "source",
16+
"query": {
17+
"match": {
18+
"test": "data"
19+
}
20+
}
21+
},
22+
"dest": {
23+
"index": "dest"
24+
}
25+
},
26+
)
27+
print(resp)
28+
----

0 commit comments

Comments
 (0)