-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b076a3e
commit d48c110
Showing
26 changed files
with
262 additions
and
288 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
docs/examples/guide/197dc41c8df9629e145b3064c63b2ccc.asciidoc
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
docs/examples/guide/1fcc4a3280be399753dcfd5c489ff682.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[source, ruby] | ||
---- | ||
response = client.indices.create( | ||
index: 'idx', | ||
body: { | ||
mappings: { | ||
_source: { | ||
mode: 'synthetic' | ||
}, | ||
properties: { | ||
my_range: { | ||
type: 'ip_range' | ||
} | ||
} | ||
} | ||
} | ||
) | ||
puts response | ||
response = client.index( | ||
index: 'idx', | ||
id: 1, | ||
body: { | ||
my_range: [ | ||
'10.0.0.0/24', | ||
{ | ||
gte: '10.0.0.0', | ||
lte: '10.0.0.255' | ||
} | ||
] | ||
} | ||
) | ||
puts response | ||
---- |
7 changes: 0 additions & 7 deletions
7
docs/examples/guide/2212167f67b7ad1cd2b8dcec083d09ea.asciidoc
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
docs/examples/guide/3386fe07e90844dbcdbbe7c07f09e04a.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[source, ruby] | ||
---- | ||
response = client.synonyms.delete_synonym( | ||
id: 'my-synonyms-set' | ||
) | ||
puts response | ||
---- |
41 changes: 0 additions & 41 deletions
41
docs/examples/guide/394d8fc4d78214e6fe5e4dea62c8923f.asciidoc
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
docs/examples/guide/3f3b3e207f79303ce6f86e03e928e062.asciidoc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
docs/examples/guide/50d36787601ebba01fc6266abe3bd415.asciidoc
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
docs/examples/guide/51390ca10aa22d7104e8970f09ea4512.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[source, ruby] | ||
---- | ||
response = client.indices.create( | ||
index: 'idx', | ||
body: { | ||
mappings: { | ||
_source: { | ||
mode: 'synthetic' | ||
}, | ||
properties: { | ||
binary: { | ||
type: 'binary', | ||
doc_values: true | ||
} | ||
} | ||
} | ||
} | ||
) | ||
puts response | ||
response = client.index( | ||
index: 'idx', | ||
id: 1, | ||
body: { | ||
binary: [ | ||
'IAA=', | ||
'EAA=' | ||
] | ||
} | ||
) | ||
puts response | ||
---- |
4 changes: 2 additions & 2 deletions
4
docs/examples/guide/53c6256295111524d5ff2885bdcb99a9.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/examples/guide/5db5349162a4fbe74bffb646926a2495.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[source, ruby] | ||
---- | ||
response = client.indices.create( | ||
index: 'idx', | ||
body: { | ||
mappings: { | ||
_source: { | ||
mode: 'synthetic' | ||
}, | ||
properties: { | ||
my_range: { | ||
type: 'long_range' | ||
} | ||
} | ||
} | ||
} | ||
) | ||
puts response | ||
response = client.index( | ||
index: 'idx', | ||
id: 1, | ||
body: { | ||
my_range: { | ||
gt: 200, | ||
lt: 300 | ||
} | ||
} | ||
) | ||
puts response | ||
---- |
15 changes: 15 additions & 0 deletions
15
docs/examples/guide/5e9a7845e60b79685aab59877c5fbd1a.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[source, ruby] | ||
---- | ||
response = client.search( | ||
body: { | ||
aggregations: { | ||
ignored_fields: { | ||
terms: { | ||
field: '_ignored' | ||
} | ||
} | ||
} | ||
} | ||
) | ||
puts response | ||
---- |
14 changes: 0 additions & 14 deletions
14
docs/examples/guide/75e229852d1404040bb2e83723c0f1db.asciidoc
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
docs/examples/guide/90112d594b934c0111b7303b9f91cb7f.asciidoc
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
docs/examples/guide/98f83f0dc4634e108ab0db6db347b2c7.asciidoc
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
docs/examples/guide/c0220f749b260889bebc567533a01c3f.asciidoc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.