Added new docs examples (#1189)
This commit is contained in:
committed by
GitHub
parent
4659b9849c
commit
803739b4cb
12
docs/doc_examples/04f5dd677c777bcb15d7d5fa63275fc8.asciidoc
Normal file
12
docs/doc_examples/04f5dd677c777bcb15d7d5fa63275fc8.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.cluster.health({
|
||||
wait_for_status: 'yellow',
|
||||
timeout: '50s'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
39
docs/doc_examples/0bd3923424a20a4ba860b0774b9991b1.asciidoc
Normal file
39
docs/doc_examples/0bd3923424a20a4ba860b0774b9991b1.asciidoc
Normal file
@ -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: 'drivers',
|
||||
body: {
|
||||
query: {
|
||||
nested: {
|
||||
path: 'driver',
|
||||
query: {
|
||||
nested: {
|
||||
path: 'driver.vehicle',
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
match: {
|
||||
'driver.vehicle.make': 'Powell Motors'
|
||||
}
|
||||
},
|
||||
{
|
||||
match: {
|
||||
'driver.vehicle.model': 'Canyonero'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
16
docs/doc_examples/0be2c28ee65384774b1e479b47dc3d92.asciidoc
Normal file
16
docs/doc_examples/0be2c28ee65384774b1e479b47dc3d92.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.putSettings({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
index: {
|
||||
refresh_interval: '1s'
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
43
docs/doc_examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc
Normal file
43
docs/doc_examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc
Normal file
@ -0,0 +1,43 @@
|
||||
// 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.bulk({
|
||||
body: [
|
||||
{
|
||||
update: {
|
||||
_id: '5',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
doc: {
|
||||
my_field: 'foo'
|
||||
}
|
||||
},
|
||||
{
|
||||
update: {
|
||||
_id: '6',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
doc: {
|
||||
my_field: 'foo'
|
||||
}
|
||||
},
|
||||
{
|
||||
create: {
|
||||
_id: '7',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
my_field: 'foo'
|
||||
}
|
||||
]
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
12
docs/doc_examples/1b542e3ea87a742f95641d64dcfb1bdb.asciidoc
Normal file
12
docs/doc_examples/1b542e3ea87a742f95641d64dcfb1bdb.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.count({
|
||||
index: 'twitter',
|
||||
q: 'user:kimchy'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/23ab0f1023b1b2cd5cdf2a8f9ccfd57b.asciidoc
Normal file
20
docs/doc_examples/23ab0f1023b1b2cd5cdf2a8f9ccfd57b.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.create({
|
||||
index: 'test1',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
user: {
|
||||
type: 'keyword'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/3653567181f43a5f64c74f934aa821c2.asciidoc
Normal file
20
docs/doc_examples/3653567181f43a5f64c74f934aa821c2.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
remove: {
|
||||
index: 'test1',
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
16
docs/doc_examples/42744a175125df5be0ef77413bf8f608.asciidoc
Normal file
16
docs/doc_examples/42744a175125df5be0ef77413bf8f608.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.putSettings({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
index: {
|
||||
refresh_interval: null
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
13
docs/doc_examples/427f6b5c5376cbf0f71f242a60ca3d9e.asciidoc
Normal file
13
docs/doc_examples/427f6b5c5376cbf0f71f242a60ca3d9e.asciidoc
Normal file
@ -0,0 +1,13 @@
|
||||
// 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: 'alias2',
|
||||
q: 'user:kimchy',
|
||||
routing: '2,3'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/46c4b0dfb674825f9579203d41e7f404.asciidoc
Normal file
20
docs/doc_examples/46c4b0dfb674825f9579203d41e7f404.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
tags: {
|
||||
type: 'keyword'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
55
docs/doc_examples/4d6997c70a1851f9151443c0d38b532e.asciidoc
Normal file
55
docs/doc_examples/4d6997c70a1851f9151443c0d38b532e.asciidoc
Normal file
@ -0,0 +1,55 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response0 = await client.index({
|
||||
index: 'my_index',
|
||||
id: '1',
|
||||
body: {
|
||||
message: 'some arrays in this document...',
|
||||
tags: [
|
||||
'elasticsearch',
|
||||
'wow'
|
||||
],
|
||||
lists: [
|
||||
{
|
||||
name: 'prog_list',
|
||||
description: 'programming list'
|
||||
},
|
||||
{
|
||||
name: 'cool_list',
|
||||
description: 'cool stuff list'
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.index({
|
||||
index: 'my_index',
|
||||
id: '2',
|
||||
body: {
|
||||
message: 'no arrays in this document...',
|
||||
tags: 'elasticsearch',
|
||||
lists: {
|
||||
name: 'prog_list',
|
||||
description: 'programming list'
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response1)
|
||||
|
||||
const response2 = await client.search({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
query: {
|
||||
match: {
|
||||
tags: 'elasticsearch'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response2)
|
||||
----
|
||||
|
||||
36
docs/doc_examples/54092c8c646133f5dbbc047990dd458d.asciidoc
Normal file
36
docs/doc_examples/54092c8c646133f5dbbc047990dd458d.asciidoc
Normal file
@ -0,0 +1,36 @@
|
||||
// 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.create({
|
||||
index: 'drivers',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
driver: {
|
||||
type: 'nested',
|
||||
properties: {
|
||||
last_name: {
|
||||
type: 'text'
|
||||
},
|
||||
vehicle: {
|
||||
type: 'nested',
|
||||
properties: {
|
||||
make: {
|
||||
type: 'text'
|
||||
},
|
||||
model: {
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
23
docs/doc_examples/5f210f74725ea0c9265190346edfa246.asciidoc
Normal file
23
docs/doc_examples/5f210f74725ea0c9265190346edfa246.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
indices: [
|
||||
'test1',
|
||||
'test2'
|
||||
],
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
22
docs/doc_examples/618d5f3d35921d8cb7e9ccfbe9a4c3e3.asciidoc
Normal file
22
docs/doc_examples/618d5f3d35921d8cb7e9ccfbe9a4c3e3.asciidoc
Normal file
@ -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({
|
||||
body: {
|
||||
query: {
|
||||
regexp: {
|
||||
user: {
|
||||
value: 'k.*y',
|
||||
flags: 'ALL',
|
||||
max_determinized_states: 10000,
|
||||
rewrite: 'constant_score'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
57
docs/doc_examples/645136747d37368a14ab34de8bd046c6.asciidoc
Normal file
57
docs/doc_examples/645136747d37368a14ab34de8bd046c6.asciidoc
Normal file
@ -0,0 +1,57 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response0 = await client.indices.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
date: {
|
||||
type: 'date'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.index({
|
||||
index: 'my_index',
|
||||
id: '1',
|
||||
body: {
|
||||
date: '2015-01-01'
|
||||
}
|
||||
})
|
||||
console.log(response1)
|
||||
|
||||
const response2 = await client.index({
|
||||
index: 'my_index',
|
||||
id: '2',
|
||||
body: {
|
||||
date: '2015-01-01T12:10:30Z'
|
||||
}
|
||||
})
|
||||
console.log(response2)
|
||||
|
||||
const response3 = await client.index({
|
||||
index: 'my_index',
|
||||
id: '3',
|
||||
body: {
|
||||
date: 1420070400001
|
||||
}
|
||||
})
|
||||
console.log(response3)
|
||||
|
||||
const response4 = await client.search({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
sort: {
|
||||
date: 'asc'
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response4)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/645c4c6e209719d3a4d25b1a629cb23b.asciidoc
Normal file
20
docs/doc_examples/645c4c6e209719d3a4d25b1a629cb23b.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
random_score: {
|
||||
seed: 10,
|
||||
field: '_seq_no'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/6799d132c1c7ca3970763acde2337ef9.asciidoc
Normal file
20
docs/doc_examples/6799d132c1c7ca3970763acde2337ef9.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test*',
|
||||
alias: 'all_test_indices'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
12
docs/doc_examples/67bba546d835bca8f31df13e3587c348.asciidoc
Normal file
12
docs/doc_examples/67bba546d835bca8f31df13e3587c348.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.get({
|
||||
index: 'test',
|
||||
id: '1'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
26
docs/doc_examples/6a81d00f0d73bc5985e76b3cadab645e.asciidoc
Normal file
26
docs/doc_examples/6a81d00f0d73bc5985e76b3cadab645e.asciidoc
Normal file
@ -0,0 +1,26 @@
|
||||
// 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.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
tag: {
|
||||
type: 'text',
|
||||
fielddata: true,
|
||||
fielddata_frequency_filter: {
|
||||
min: 0.001,
|
||||
max: 0.1,
|
||||
min_segment_size: 500
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
37
docs/doc_examples/6be70810d6ebd6f09d8a49f9df847765.asciidoc
Normal file
37
docs/doc_examples/6be70810d6ebd6f09d8a49f9df847765.asciidoc
Normal file
@ -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: 'my_index',
|
||||
body: {
|
||||
query: {
|
||||
nested: {
|
||||
path: 'obj1',
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
match: {
|
||||
'obj1.name': 'blue'
|
||||
}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
'obj1.count': {
|
||||
gt: 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
score_mode: 'avg'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
25
docs/doc_examples/7cf71671859be7c1ecf673396db377cd.asciidoc
Normal file
25
docs/doc_examples/7cf71671859be7c1ecf673396db377cd.asciidoc
Normal file
@ -0,0 +1,25 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test1',
|
||||
alias: 'alias2',
|
||||
filter: {
|
||||
term: {
|
||||
user: 'kimchy'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
16
docs/doc_examples/8653e76676de5d327201b77512afa3a0.asciidoc
Normal file
16
docs/doc_examples/8653e76676de5d327201b77512afa3a0.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.putSettings({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
index: {
|
||||
number_of_replicas: 2
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
49
docs/doc_examples/873fbbc6ab81409058591385fd602736.asciidoc
Normal file
49
docs/doc_examples/873fbbc6ab81409058591385fd602736.asciidoc
Normal file
@ -0,0 +1,49 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response0 = await client.index({
|
||||
index: 'drivers',
|
||||
id: '1',
|
||||
body: {
|
||||
driver: {
|
||||
last_name: 'McQueen',
|
||||
vehicle: [
|
||||
{
|
||||
make: 'Powell Motors',
|
||||
model: 'Canyonero'
|
||||
},
|
||||
{
|
||||
make: 'Miller-Meteor',
|
||||
model: 'Ecto-1'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.index({
|
||||
index: 'drivers',
|
||||
id: '2',
|
||||
refresh: true,
|
||||
body: {
|
||||
driver: {
|
||||
last_name: 'Hudson',
|
||||
vehicle: [
|
||||
{
|
||||
make: 'Mifune',
|
||||
model: 'Mach Five'
|
||||
},
|
||||
{
|
||||
make: 'Miller-Meteor',
|
||||
model: 'Ecto-1'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response1)
|
||||
----
|
||||
|
||||
22
docs/doc_examples/8eaf4d5dd4ab1335deefa7749fdbbcc3.asciidoc
Normal file
22
docs/doc_examples/8eaf4d5dd4ab1335deefa7749fdbbcc3.asciidoc
Normal file
@ -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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
field_value_factor: {
|
||||
field: 'likes',
|
||||
factor: 1.2,
|
||||
modifier: 'sqrt',
|
||||
missing: 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
34
docs/doc_examples/8f0511f8a5cb176ff2afdd4311799a33.asciidoc
Normal file
34
docs/doc_examples/8f0511f8a5cb176ff2afdd4311799a33.asciidoc
Normal file
@ -0,0 +1,34 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response0 = await client.index({
|
||||
index: 'twitter',
|
||||
id: '1',
|
||||
refresh: true,
|
||||
body: {
|
||||
user: 'kimchy'
|
||||
}
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.count({
|
||||
index: 'twitter',
|
||||
q: 'user:kimchy'
|
||||
})
|
||||
console.log(response1)
|
||||
|
||||
const response2 = await client.count({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
query: {
|
||||
term: {
|
||||
user: 'kimchy'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response2)
|
||||
----
|
||||
|
||||
@ -5,12 +5,11 @@
|
||||
----
|
||||
const response = await client.search({
|
||||
body: {
|
||||
aggs: {
|
||||
products: {
|
||||
terms: {
|
||||
field: 'product',
|
||||
size: 5
|
||||
}
|
||||
from: 0,
|
||||
size: 10,
|
||||
query: {
|
||||
term: {
|
||||
user: 'kimchy'
|
||||
}
|
||||
}
|
||||
}
|
||||
22
docs/doc_examples/a42f33e15b0995bb4b6058659bfdea85.asciidoc
Normal file
22
docs/doc_examples/a42f33e15b0995bb4b6058659bfdea85.asciidoc
Normal file
@ -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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
query: {
|
||||
match_all: {}
|
||||
},
|
||||
boost: '5',
|
||||
random_score: {},
|
||||
boost_mode: 'multiply'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
19
docs/doc_examples/a7c15fe6b5779c84ce9a34bf4b2a7ab7.asciidoc
Normal file
19
docs/doc_examples/a7c15fe6b5779c84ce9a34bf4b2a7ab7.asciidoc
Normal file
@ -0,0 +1,19 @@
|
||||
// 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.putMapping({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
properties: {
|
||||
my_field: {
|
||||
type: 'text',
|
||||
fielddata: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
28
docs/doc_examples/ad79228630684d950fe9792a768d24c5.asciidoc
Normal file
28
docs/doc_examples/ad79228630684d950fe9792a768d24c5.asciidoc
Normal file
@ -0,0 +1,28 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test',
|
||||
alias: 'alias1',
|
||||
is_write_index: false
|
||||
}
|
||||
},
|
||||
{
|
||||
add: {
|
||||
index: 'test2',
|
||||
alias: 'alias1',
|
||||
is_write_index: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
26
docs/doc_examples/af3fb9fa5691a7b37a6dc2a69ff66e64.asciidoc
Normal file
26
docs/doc_examples/af3fb9fa5691a7b37a6dc2a69ff66e64.asciidoc
Normal file
@ -0,0 +1,26 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
remove: {
|
||||
index: 'test1',
|
||||
alias: 'alias1'
|
||||
}
|
||||
},
|
||||
{
|
||||
add: {
|
||||
index: 'test1',
|
||||
alias: 'alias2'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
// 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.cluster.health()
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
15
docs/doc_examples/b0ec418bf416c62bed602b0a32a6d5f5.asciidoc
Normal file
15
docs/doc_examples/b0ec418bf416c62bed602b0a32a6d5f5.asciidoc
Normal file
@ -0,0 +1,15 @@
|
||||
// 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.index({
|
||||
index: 'alias1',
|
||||
id: '1',
|
||||
body: {
|
||||
foo: 'bar'
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/b4392116f2cc57ce8064ccbad30318d5.asciidoc
Normal file
20
docs/doc_examples/b4392116f2cc57ce8064ccbad30318d5.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test1',
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
43
docs/doc_examples/b4a0d0ed512dffc10ee53bca2feca49b.asciidoc
Normal file
43
docs/doc_examples/b4a0d0ed512dffc10ee53bca2feca49b.asciidoc
Normal file
@ -0,0 +1,43 @@
|
||||
// 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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
query: {
|
||||
match_all: {}
|
||||
},
|
||||
boost: '5',
|
||||
functions: [
|
||||
{
|
||||
filter: {
|
||||
match: {
|
||||
test: 'bar'
|
||||
}
|
||||
},
|
||||
random_score: {},
|
||||
weight: 23
|
||||
},
|
||||
{
|
||||
filter: {
|
||||
match: {
|
||||
test: 'cat'
|
||||
}
|
||||
},
|
||||
weight: 42
|
||||
}
|
||||
],
|
||||
max_boost: 42,
|
||||
score_mode: 'max',
|
||||
boost_mode: 'multiply',
|
||||
min_score: 42
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
30
docs/doc_examples/b68c85fe1b0d2f264dc0d1cbf530f319.asciidoc
Normal file
30
docs/doc_examples/b68c85fe1b0d2f264dc0d1cbf530f319.asciidoc
Normal file
@ -0,0 +1,30 @@
|
||||
// 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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
query: {
|
||||
match: {
|
||||
message: 'elasticsearch'
|
||||
}
|
||||
},
|
||||
script_score: {
|
||||
script: {
|
||||
params: {
|
||||
a: 5,
|
||||
b: 1.2
|
||||
},
|
||||
source: "params.a / Math.pow(params.b, doc['likes'].value)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
31
docs/doc_examples/ba0b4081c98f3387f76b77847c52ee9a.asciidoc
Normal file
31
docs/doc_examples/ba0b4081c98f3387f76b77847c52ee9a.asciidoc
Normal file
@ -0,0 +1,31 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response0 = await client.indices.close({
|
||||
index: 'twitter'
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.indices.putSettings({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
analysis: {
|
||||
analyzer: {
|
||||
content: {
|
||||
type: 'custom',
|
||||
tokenizer: 'whitespace'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response1)
|
||||
|
||||
const response2 = await client.indices.open({
|
||||
index: 'twitter'
|
||||
})
|
||||
console.log(response2)
|
||||
----
|
||||
|
||||
21
docs/doc_examples/bc1ad5cc6d3eab98e3ce01f209ba7094.asciidoc
Normal file
21
docs/doc_examples/bc1ad5cc6d3eab98e3ce01f209ba7094.asciidoc
Normal file
@ -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.indices.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test',
|
||||
alias: 'alias1',
|
||||
routing: '1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
46
docs/doc_examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc
Normal file
46
docs/doc_examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc
Normal file
@ -0,0 +1,46 @@
|
||||
// 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.bulk({
|
||||
filter_path: 'items.*.error',
|
||||
body: [
|
||||
{
|
||||
update: {
|
||||
_id: '5',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
doc: {
|
||||
my_field: 'baz'
|
||||
}
|
||||
},
|
||||
{
|
||||
update: {
|
||||
_id: '6',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
doc: {
|
||||
my_field: 'baz'
|
||||
}
|
||||
},
|
||||
{
|
||||
update: {
|
||||
_id: '7',
|
||||
_index: 'index1'
|
||||
}
|
||||
},
|
||||
{
|
||||
doc: {
|
||||
my_field: 'baz'
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
12
docs/doc_examples/c48264ec5d9b9679fddd72e5c44425b9.asciidoc
Normal file
12
docs/doc_examples/c48264ec5d9b9679fddd72e5c44425b9.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.cluster.health({
|
||||
index: 'twitter',
|
||||
level: 'shards'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
20
docs/doc_examples/c612d93e7f682a0d731e385edf9f5d56.asciidoc
Normal file
20
docs/doc_examples/c612d93e7f682a0d731e385edf9f5d56.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
obj1: {
|
||||
type: 'nested'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
@ -4,8 +4,7 @@
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.search({
|
||||
index: 'twitter',
|
||||
q: 'tag:wow'
|
||||
index: 'twitter'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
20
docs/doc_examples/d3016e4e8025362ad9a05ee86bb2061f.asciidoc
Normal file
20
docs/doc_examples/d3016e4e8025362ad9a05ee86bb2061f.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'twitter',
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
35
docs/doc_examples/de176bc4788ea286fff9e92418a43ea8.asciidoc
Normal file
35
docs/doc_examples/de176bc4788ea286fff9e92418a43ea8.asciidoc
Normal file
@ -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 response0 = await client.indices.create({
|
||||
index: 'test'
|
||||
})
|
||||
console.log(response0)
|
||||
|
||||
const response1 = await client.indices.create({
|
||||
index: 'test_2'
|
||||
})
|
||||
console.log(response1)
|
||||
|
||||
const response2 = await client.indices.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test_2',
|
||||
alias: 'test'
|
||||
}
|
||||
},
|
||||
{
|
||||
remove_index: {
|
||||
index: 'test'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response2)
|
||||
----
|
||||
|
||||
40
docs/doc_examples/df17f920b0deab3529b98df88b781f55.asciidoc
Normal file
40
docs/doc_examples/df17f920b0deab3529b98df88b781f55.asciidoc
Normal file
@ -0,0 +1,40 @@
|
||||
// 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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
functions: [
|
||||
{
|
||||
gauss: {
|
||||
price: {
|
||||
origin: '0',
|
||||
scale: '20'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
gauss: {
|
||||
location: {
|
||||
origin: '11, 12',
|
||||
scale: '2km'
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
query: {
|
||||
match: {
|
||||
properties: 'balcony'
|
||||
}
|
||||
},
|
||||
score_mode: 'multiply'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
16
docs/doc_examples/dfac8d098b50aa0181161bcd17b38ef4.asciidoc
Normal file
16
docs/doc_examples/dfac8d098b50aa0181161bcd17b38ef4.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.putSettings({
|
||||
index: 'twitter',
|
||||
body: {
|
||||
index: {
|
||||
refresh_interval: '-1'
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
21
docs/doc_examples/e2a042c629429855c3bcaefffb26b7fa.asciidoc
Normal file
21
docs/doc_examples/e2a042c629429855c3bcaefffb26b7fa.asciidoc
Normal file
@ -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.indices.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
date: {
|
||||
type: 'date',
|
||||
format: 'yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
24
docs/doc_examples/ec27afee074001b0e4e393611010842b.asciidoc
Normal file
24
docs/doc_examples/ec27afee074001b0e4e393611010842b.asciidoc
Normal file
@ -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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
gauss: {
|
||||
date: {
|
||||
origin: '2013-09-17',
|
||||
scale: '10d',
|
||||
offset: '5d',
|
||||
decay: 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
26
docs/doc_examples/ec473de07fe89bcbac1f8e278617fe46.asciidoc
Normal file
26
docs/doc_examples/ec473de07fe89bcbac1f8e278617fe46.asciidoc
Normal file
@ -0,0 +1,26 @@
|
||||
// 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({
|
||||
body: {
|
||||
query: {
|
||||
function_score: {
|
||||
query: {
|
||||
match: {
|
||||
message: 'elasticsearch'
|
||||
}
|
||||
},
|
||||
script_score: {
|
||||
script: {
|
||||
source: "Math.log(2 + doc['likes'].value)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
25
docs/doc_examples/ef9111c1648d7820925f12e07d1346c5.asciidoc
Normal file
25
docs/doc_examples/ef9111c1648d7820925f12e07d1346c5.asciidoc
Normal file
@ -0,0 +1,25 @@
|
||||
// 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.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
my_field: {
|
||||
type: 'text',
|
||||
fields: {
|
||||
keyword: {
|
||||
type: 'keyword'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
26
docs/doc_examples/f0e21e03a07c8fa0209b0aafdb3791e6.asciidoc
Normal file
26
docs/doc_examples/f0e21e03a07c8fa0209b0aafdb3791e6.asciidoc
Normal file
@ -0,0 +1,26 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test1',
|
||||
alias: 'alias1'
|
||||
}
|
||||
},
|
||||
{
|
||||
add: {
|
||||
index: 'test2',
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
27
docs/doc_examples/f6d6889667f56b8f49d2858070571a6b.asciidoc
Normal file
27
docs/doc_examples/f6d6889667f56b8f49d2858070571a6b.asciidoc
Normal file
@ -0,0 +1,27 @@
|
||||
// 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.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test',
|
||||
alias: 'alias1',
|
||||
is_write_index: true
|
||||
}
|
||||
},
|
||||
{
|
||||
add: {
|
||||
index: 'test2',
|
||||
alias: 'alias1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
22
docs/doc_examples/fa0f4485cd48f986b7ae8cbb24e331c4.asciidoc
Normal file
22
docs/doc_examples/fa0f4485cd48f986b7ae8cbb24e331c4.asciidoc
Normal file
@ -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.indices.updateAliases({
|
||||
body: {
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: 'test',
|
||||
alias: 'alias2',
|
||||
search_routing: '1,2',
|
||||
index_routing: '2'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
12
docs/doc_examples/fe5763d32955e8b65eb3048e97b1580c.asciidoc
Normal file
12
docs/doc_examples/fe5763d32955e8b65eb3048e97b1580c.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
// 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.forcemerge({
|
||||
index: 'twitter',
|
||||
max_num_segments: '5'
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
@ -61,7 +61,20 @@ const enabledFiles = [
|
||||
'mapping/types/nested.asciidoc',
|
||||
'mapping/params/format.asciidoc',
|
||||
'docs/delete-by-query.asciidoc',
|
||||
'search/request/sort.asciidoc'
|
||||
'search/request/sort.asciidoc',
|
||||
'query-dsl/function-score-query.asciidoc',
|
||||
'query-dsl/nested-query.asciidoc',
|
||||
'query-dsl/regexp-query.asciidoc',
|
||||
'mapping/types/array.asciidoc',
|
||||
'mapping/types/date.asciidoc',
|
||||
'mapping/types/keyword.asciidoc',
|
||||
'mapping/params/fielddata.asciidoc',
|
||||
'cluster/health.asciidoc',
|
||||
'docs/bulk.asciidoc',
|
||||
'indices/aliases.asciidoc',
|
||||
'indices/update-settings.asciidoc',
|
||||
'search/request/from-size.asciidoc',
|
||||
'search/count.asciidoc'
|
||||
]
|
||||
|
||||
function generate () {
|
||||
|
||||
Reference in New Issue
Block a user