Skip to content

Commit 9db87be

Browse files
committed
[DOCS] Updates generated docs
1 parent c82ee58 commit 9db87be

File tree

1,346 files changed

+22546
-2489
lines changed

Some content is hidden

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

1,346 files changed

+22546
-2489
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[source, ruby]
2+
----
3+
response = client.search(
4+
body: {
5+
query: {
6+
pinned: {
7+
ids: [
8+
'1',
9+
'4',
10+
'100'
11+
],
12+
organic: {
13+
match: {
14+
description: 'iphone'
15+
}
16+
}
17+
}
18+
}
19+
}
20+
)
21+
puts response
22+
----
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[source, ruby]
2+
----
3+
response = client.migration.post_feature_upgrade
4+
puts response
5+
----
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[source, ruby]
2+
----
3+
response = client.search(
4+
index: 'my-index',
5+
body: {
6+
query: {
7+
match: {
8+
"http.clientip": '40.135.0.0'
9+
}
10+
},
11+
fields: [
12+
'http.clientip'
13+
]
14+
}
15+
)
16+
puts response
17+
----
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[source, ruby]
2+
----
3+
response = client.indices.shard_stores
4+
puts response
5+
----
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[source, ruby]
2+
----
3+
response = client.render_search_template(
4+
body: {
5+
source: '{ "query": {{#toJson}}my_query{{/toJson}} }',
6+
params: {
7+
my_query: {
8+
match_all: {}
9+
}
10+
}
11+
}
12+
)
13+
puts response
14+
----
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[source, ruby]
2+
----
3+
response = client.indices.analyze(
4+
body: {
5+
tokenizer: 'standard',
6+
filter: [
7+
'asciifolding'
8+
],
9+
text: 'açaí à la carte'
10+
}
11+
)
12+
puts response
13+
----
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[source, ruby]
2+
----
3+
response = client.indices.create(
4+
index: 'italian_example',
5+
body: {
6+
settings: {
7+
analysis: {
8+
filter: {
9+
italian_elision: {
10+
type: 'elision',
11+
articles: [
12+
'c',
13+
'l',
14+
'all',
15+
'dall',
16+
'dell',
17+
'nell',
18+
'sull',
19+
'coll',
20+
'pell',
21+
'gl',
22+
'agl',
23+
'dagl',
24+
'degl',
25+
'negl',
26+
'sugl',
27+
'un',
28+
'm',
29+
't',
30+
's',
31+
'v',
32+
'd'
33+
],
34+
articles_case: true
35+
},
36+
italian_stop: {
37+
type: 'stop',
38+
stopwords: '_italian_'
39+
},
40+
italian_keywords: {
41+
type: 'keyword_marker',
42+
keywords: [
43+
'esempio'
44+
]
45+
},
46+
italian_stemmer: {
47+
type: 'stemmer',
48+
language: 'light_italian'
49+
}
50+
},
51+
analyzer: {
52+
rebuilt_italian: {
53+
tokenizer: 'standard',
54+
filter: [
55+
'italian_elision',
56+
'lowercase',
57+
'italian_stop',
58+
'italian_keywords',
59+
'italian_stemmer'
60+
]
61+
}
62+
}
63+
}
64+
}
65+
}
66+
)
67+
puts response
68+
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[source, ruby]
2+
----
3+
response = client.search(
4+
index: 'my-index-000001',
5+
body: {
6+
aggregations: {
7+
"my-agg-name": {
8+
terms: {
9+
field: 'my-field'
10+
}
11+
}
12+
}
13+
}
14+
)
15+
puts response
16+
----
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[source, ruby]
2+
----
3+
response = client.indices.create(
4+
index: 'basque_example',
5+
body: {
6+
settings: {
7+
analysis: {
8+
filter: {
9+
basque_stop: {
10+
type: 'stop',
11+
stopwords: '_basque_'
12+
},
13+
basque_keywords: {
14+
type: 'keyword_marker',
15+
keywords: [
16+
'Adibidez'
17+
]
18+
},
19+
basque_stemmer: {
20+
type: 'stemmer',
21+
language: 'basque'
22+
}
23+
},
24+
analyzer: {
25+
rebuilt_basque: {
26+
tokenizer: 'standard',
27+
filter: [
28+
'lowercase',
29+
'basque_stop',
30+
'basque_keywords',
31+
'basque_stemmer'
32+
]
33+
}
34+
}
35+
}
36+
}
37+
}
38+
)
39+
puts response
40+
----
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[source, ruby]
2+
----
3+
response = client.indices.create(
4+
index: 'sales',
5+
body: {
6+
mappings: {
7+
properties: {
8+
tags: {
9+
type: 'keyword'
10+
},
11+
comments: {
12+
type: 'nested',
13+
properties: {
14+
username: {
15+
type: 'keyword'
16+
},
17+
comment: {
18+
type: 'text'
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
25+
)
26+
puts response
27+
----

0 commit comments

Comments
 (0)