-
Notifications
You must be signed in to change notification settings - Fork 730
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
100be27
commit 42eb609
Showing
32 changed files
with
941 additions
and
245 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/0722b302b2b3275a988d858044f99d5d.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,10 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.indices.getMapping({ | ||
index: "kibana_sample_data_ecommerce", | ||
}); | ||
console.log(response); | ||
---- |
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
35 changes: 35 additions & 0 deletions
35
docs/doc_examples/2a67608dadbf220a2f040f3a79d3677d.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,35 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.ingest.putPipeline({ | ||
id: "attachment", | ||
description: "Extract attachment information including original binary", | ||
processors: [ | ||
{ | ||
attachment: { | ||
field: "data", | ||
remove_binary: false, | ||
}, | ||
}, | ||
], | ||
}); | ||
console.log(response); | ||
const response1 = await client.index({ | ||
index: "my-index-000001", | ||
id: "my_id", | ||
pipeline: "attachment", | ||
document: { | ||
data: "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=", | ||
}, | ||
}); | ||
console.log(response1); | ||
const response2 = await client.get({ | ||
index: "my-index-000001", | ||
id: "my_id", | ||
}); | ||
console.log(response2); | ||
---- |
18 changes: 18 additions & 0 deletions
18
docs/doc_examples/3f9dcf2aa42f3ecfb5ebfe48c1774103.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,18 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
order_stats: { | ||
stats: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
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/doc_examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
docs/doc_examples/5a70db31f587b7ffed5e9bc1445430cb.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
24 changes: 24 additions & 0 deletions
24
docs/doc_examples/730045fae3743c39b612813a42c330c3.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,24 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "my-index-000001", | ||
query: { | ||
prefix: { | ||
full_name: { | ||
value: "ki", | ||
}, | ||
}, | ||
}, | ||
highlight: { | ||
fields: { | ||
full_name: { | ||
matched_fields: ["full_name._index_prefix"], | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
33 changes: 33 additions & 0 deletions
33
docs/doc_examples/7478ff69113fb53f41ea07cdf911fa67.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,33 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
daily_sales: { | ||
date_histogram: { | ||
field: "order_date", | ||
calendar_interval: "day", | ||
}, | ||
aggs: { | ||
daily_revenue: { | ||
sum: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
smoothed_revenue: { | ||
moving_fn: { | ||
buckets_path: "daily_revenue", | ||
window: 3, | ||
script: "MovingFunctions.unweightedAvg(values)", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
37 changes: 37 additions & 0 deletions
37
docs/doc_examples/7dd0d9cc6c5982a2c003d301e90feeba.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,37 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
daily_sales: { | ||
date_histogram: { | ||
field: "order_date", | ||
calendar_interval: "day", | ||
format: "yyyy-MM-dd", | ||
}, | ||
aggs: { | ||
revenue: { | ||
sum: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
unique_customers: { | ||
cardinality: { | ||
field: "customer_id", | ||
}, | ||
}, | ||
avg_basket_size: { | ||
avg: { | ||
field: "total_quantity", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
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
39 changes: 39 additions & 0 deletions
39
docs/doc_examples/8c639d3eef5c2de29e12bd9c6a42d3d4.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,39 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
categories: { | ||
terms: { | ||
field: "category.keyword", | ||
size: 5, | ||
order: { | ||
total_revenue: "desc", | ||
}, | ||
}, | ||
aggs: { | ||
total_revenue: { | ||
sum: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
avg_order_value: { | ||
avg: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
total_items: { | ||
sum: { | ||
field: "total_quantity", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
22 changes: 0 additions & 22 deletions
22
docs/doc_examples/8cad5d95a0e7c103f08be53d0b172558.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
18 changes: 18 additions & 0 deletions
18
docs/doc_examples/b590241c4296299b836fbb5a95bdd2dc.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,18 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
avg_order_value: { | ||
avg: { | ||
field: "taxful_total_price", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
21 changes: 21 additions & 0 deletions
21
docs/doc_examples/b6d278737d27973e498ac61cda9e5126.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,21 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
daily_orders: { | ||
date_histogram: { | ||
field: "order_date", | ||
calendar_interval: "day", | ||
format: "yyyy-MM-dd", | ||
min_doc_count: 0, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
22 changes: 22 additions & 0 deletions
22
docs/doc_examples/bdc55256fa5f701680631a149dbb75a9.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,22 @@ | ||
// This file is autogenerated, DO NOT EDIT | ||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples | ||
|
||
[source, js] | ||
---- | ||
const response = await client.search({ | ||
index: "kibana_sample_data_ecommerce", | ||
size: 0, | ||
aggs: { | ||
sales_by_category: { | ||
terms: { | ||
field: "category.keyword", | ||
size: 5, | ||
order: { | ||
_count: "desc", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
Oops, something went wrong.