-
Notifications
You must be signed in to change notification settings - Fork 727
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
78332da
commit 180f1b9
Showing
58 changed files
with
813 additions
and
158 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
docs/doc_examples/0fbca60a487f5f22a4d51d73b2434cc4.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,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: "elser-embeddings", | ||
mappings: { | ||
properties: { | ||
content_embedding: { | ||
type: "sparse_vector", | ||
}, | ||
content: { | ||
type: "text", | ||
}, | ||
}, | ||
}, | ||
}); | ||
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
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
11 changes: 11 additions & 0 deletions
11
docs/doc_examples/19d60e4890cc57151d596326484d9076.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,11 @@ | ||
// 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.deleteGeoipDatabase({ | ||
id: "my-database-id", | ||
body: null, | ||
}); | ||
console.log(response); | ||
---- |
21 changes: 21 additions & 0 deletions
21
docs/doc_examples/1b60ad542abb511cbd926ac8c55b609c.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.transport.request({ | ||
method: "PUT", | ||
path: "/_inference/sparse_embedding/my-elser-model", | ||
body: { | ||
service: "elser", | ||
service_settings: { | ||
adaptive_allocations: { | ||
enabled: true, | ||
min_number_of_allocations: 3, | ||
max_number_of_allocations: 10, | ||
}, | ||
}, | ||
}, | ||
}); | ||
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
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/2acf75803494fef29f9ca70671aa6be1.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.security.bulkDeleteRole({ | ||
names: ["my_admin_role", "superuser"], | ||
}); | ||
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
25 changes: 25 additions & 0 deletions
25
docs/doc_examples/30fa37c9575fe81a0ea7c12cfc08e277.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,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: "bad_example_index", | ||
mappings: { | ||
properties: { | ||
field_1: { | ||
type: "text", | ||
copy_to: "field_2", | ||
}, | ||
field_2: { | ||
type: "text", | ||
copy_to: "field_3", | ||
}, | ||
field_3: { | ||
type: "text", | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
21 changes: 21 additions & 0 deletions
21
docs/doc_examples/398389933901b572a06a752bc780af7c.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.transport.request({ | ||
method: "PUT", | ||
path: "/_inference/completion/anthropic_completion", | ||
body: { | ||
service: "anthropic", | ||
service_settings: { | ||
api_key: "<api_key>", | ||
model_id: "<model_id>", | ||
}, | ||
task_settings: { | ||
max_tokens: 1024, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
11 changes: 11 additions & 0 deletions
11
docs/doc_examples/3b6718257421b5419bf4cd6a7303c57e.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,11 @@ | ||
// 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.getGeoipDatabase({ | ||
id: "my-database-id", | ||
body: null, | ||
}); | ||
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
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
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/44385b61342e20ea05f254015b2b04d7.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.security.bulkDeleteRole({ | ||
names: ["my_admin_role", "my_user_role"], | ||
}); | ||
console.log(response); | ||
---- |
11 changes: 11 additions & 0 deletions
11
docs/doc_examples/4982c547be1ad9455ae836990aea92c5.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,11 @@ | ||
// 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.ml.startTrainedModelDeployment({ | ||
model_id: "my_model", | ||
deployment_id: "my_model_for_search", | ||
}); | ||
console.log(response); | ||
---- |
21 changes: 21 additions & 0 deletions
21
docs/doc_examples/517d291044c3e4448b8804322616ab4a.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.ingest.putPipeline({ | ||
id: "elser_embeddings", | ||
processors: [ | ||
{ | ||
inference: { | ||
model_id: "elser_embeddings", | ||
input_output: { | ||
input_field: "content", | ||
output_field: "content_embedding", | ||
}, | ||
}, | ||
}, | ||
], | ||
}); | ||
console.log(response); | ||
---- |
11 changes: 11 additions & 0 deletions
11
docs/doc_examples/533087d787b48878a0bf3fa8d0851b64.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,11 @@ | ||
// 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.deleteGeoipDatabase({ | ||
id: "example-database-id", | ||
body: null, | ||
}); | ||
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
28 changes: 28 additions & 0 deletions
28
docs/doc_examples/5d3ee81bcf6ad57f39052c9065963cc3.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,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.create({ | ||
index: "test_index", | ||
mappings: { | ||
dynamic: "strict", | ||
properties: { | ||
description: { | ||
properties: { | ||
notes: { | ||
type: "text", | ||
copy_to: ["description.notes_raw"], | ||
analyzer: "standard", | ||
search_analyzer: "standard", | ||
}, | ||
notes_raw: { | ||
type: "keyword", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
console.log(response); | ||
---- |
10 changes: 10 additions & 0 deletions
10
docs/doc_examples/5deeed427f35cbaee4b8ddc45002a9d7.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.security.bulkDeleteRole({ | ||
names: ["my_admin_role", "not_an_existing_role"], | ||
}); | ||
console.log(response); | ||
---- |
47 changes: 0 additions & 47 deletions
47
docs/doc_examples/5f79c42b0f74fdf71359cef82843fad3.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
Oops, something went wrong.