Skip to content

Commit bde5fd0

Browse files
committed
[DOCS] Updates generated docs
1 parent 6b12817 commit bde5fd0

File tree

232 files changed

+1086
-1873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+1086
-1873
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[source, ruby]
2+
----
3+
response = client.search(
4+
index: 'sales',
5+
size: 0,
6+
filter_path: 'aggregations',
7+
body: {
8+
query: {
9+
term: {
10+
type: 't-shirt'
11+
}
12+
},
13+
aggregations: {
14+
avg_price: {
15+
avg: {
16+
field: 'price'
17+
}
18+
}
19+
}
20+
}
21+
)
22+
puts response
23+
----
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[source, ruby]
22
----
33
response = client.get(
4-
index: 'twitter',
4+
index: 'my-index-000001',
55
id: 0,
6-
_source: '*.id,retweeted'
6+
_source: '*.id'
77
)
88
puts response
99
----

docs/examples/guide/05d03b7be5fa4f34887044fccb75fbd0.asciidoc

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/examples/guide/1bc731a4df952228af6dfa6b48627332.asciidoc renamed to docs/examples/guide/07ba3eaa931f2cf110052e3544db51f8.asciidoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ response = client.reindex(
44
body: {
55
max_docs: 10,
66
source: {
7-
index: 'twitter',
7+
index: 'my-index-000001',
88
query: {
99
function_score: {
10-
random_score: {
11-
},
10+
random_score: {},
1211
min_score: 0.9
1312
}
1413
}
1514
},
1615
dest: {
17-
index: 'random_twitter'
16+
index: 'my-new-index-000001'
1817
}
1918
}
2019
)

docs/examples/guide/09d0e8454a413cfce28212a841b2f2bd.asciidoc

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/examples/guide/09d617863a103c82fb4101e6165ea7fe.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
response = client.search(
44
body: {
55
query: {
6-
match_all: {
7-
}
6+
match_all: {}
87
}
98
}
109
)

docs/examples/guide/09dbd90c5e22ea4a17b4cf9aa72e08ae.asciidoc

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/examples/guide/0bcd380315ef4691b8c79df6ca53a85f.asciidoc

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[source, ruby]
22
----
33
response = client.delete(
4-
index: 'twitter',
4+
index: 'my-index-000001',
55
id: 1,
6-
routing: 'kimchy'
6+
routing: 'shard-1'
77
)
88
puts response
99
----
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[source, ruby]
2+
----
3+
response = client.search(
4+
index: 'sales',
5+
size: 0,
6+
filter_path: 'aggregations',
7+
body: {
8+
aggregations: {
9+
hats: {
10+
filter: {
11+
term: {
12+
type: 'hat'
13+
}
14+
},
15+
aggregations: {
16+
avg_price: {
17+
avg: {
18+
field: 'price'
19+
}
20+
}
21+
}
22+
},
23+
t_shirts: {
24+
filter: {
25+
term: {
26+
type: 't-shirt'
27+
}
28+
},
29+
aggregations: {
30+
avg_price: {
31+
avg: {
32+
field: 'price'
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
39+
)
40+
puts response
41+
----

0 commit comments

Comments
 (0)