Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.15] Update documentation examples #2663

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:60

[source, python]
----
resp = client.tasks.list(
human=True,
detailed=True,
actions="indices:data/write/bulk",
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// rest-api/security/get-service-accounts.asciidoc:267
// rest-api/security/get-service-accounts.asciidoc:297

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="alibabacloud_ai_search_embeddings",
id="alibabacloud_ai_search_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/1637ef51d673b35cc8894ee80cd61c87.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/cpu-usage.asciidoc:14
// troubleshooting/common-issues/high-cpu-usage.asciidoc:24

[source, python]
----
Expand Down
10 changes: 0 additions & 10 deletions docs/examples/1745ac9e6d22a2ffe7ac381f9ba238f9.asciidoc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/1a56df055b94466ca76818e0858752c6.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:89
// tab-widgets/inference-api/infer-api-task.asciidoc:97

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="hugging_face_embeddings",
id="hugging_face_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="google_vertex_ai_embeddings",
id="google_vertex_ai_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/21cd01cb90d3ea1acd0ab22d7edd2c88.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:154
// tab-widgets/inference-api/infer-api-task.asciidoc:162

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:34
// troubleshooting/common-issues/task-queue-backlog.asciidoc:39

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "azure-ai-studio-embeddings",
"pipeline": "azure_ai_studio_embeddings"
"pipeline": "azure_ai_studio_embeddings_pipeline"
},
)
print(resp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="azure_ai_studio_embeddings",
id="azure_ai_studio_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "openai-embeddings",
"pipeline": "openai_embeddings"
"pipeline": "openai_embeddings_pipeline"
},
)
print(resp)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/3a2f37f8f32b1aa6bcfb252b9e00f904.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// index-modules.asciidoc:95
// index-modules.asciidoc:97

[source, python]
----
Expand Down
8 changes: 8 additions & 0 deletions docs/examples/3a489743e49902df38e3368cae00717a.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/high-cpu-usage.asciidoc:43

[source, python]
----
resp = client.nodes.hot_threads()
print(resp)
----
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "amazon-bedrock-embeddings",
"pipeline": "amazon_bedrock_embeddings"
"pipeline": "amazon_bedrock_embeddings_pipeline"
},
)
print(resp)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:254
// tab-widgets/inference-api/infer-api-task.asciidoc:262

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:22
// troubleshooting/common-issues/task-queue-backlog.asciidoc:25

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/4310869b97d4224acaa6d66b1e196048.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/semantic-search-elser.asciidoc:172
// search/search-your-data/semantic-search-elser.asciidoc:184

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="openai_embeddings",
id="openai_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "elser-embeddings",
"pipeline": "elser_embeddings"
"pipeline": "elser_embeddings_pipeline"
},
)
print(resp)
Expand Down
11 changes: 11 additions & 0 deletions docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/rejected-requests.asciidoc:58

[source, python]
----
resp = client.nodes.stats(
human=True,
filter_path="nodes.*.indexing_pressure",
)
print(resp)
----
10 changes: 0 additions & 10 deletions docs/examples/50ddf374cfa8128538ea092ee98b723d.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="cohere_embeddings",
id="cohere_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "hugging-face-embeddings",
"pipeline": "hugging_face_embeddings"
"pipeline": "hugging_face_embeddings_pipeline"
},
)
print(resp)
Expand Down
10 changes: 10 additions & 0 deletions docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/rejected-requests.asciidoc:43

[source, python]
----
resp = client.nodes.stats(
metric="breaker",
)
print(resp)
----
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "google-vertex-ai-embeddings",
"pipeline": "google_vertex_ai_embeddings"
"pipeline": "google_vertex_ai_embeddings_pipeline"
},
)
print(resp)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/71c629c44bf3c542a0daacbfc253c4b0.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cluster/stats.asciidoc:1643
// cluster/stats.asciidoc:1812

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/7594a9a85c8511701e281974cbc253e1.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:228
// tab-widgets/inference-api/infer-api-task.asciidoc:236

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "cohere-embeddings",
"pipeline": "cohere_embeddings"
"pipeline": "cohere_embeddings_pipeline"
},
)
print(resp)
Expand Down
11 changes: 11 additions & 0 deletions docs/examples/84237aa9da49ab4b4c4e2b21d2548df2.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is autogenerated, DO NOT EDIT
// snapshot-restore/apis/verify-repo-integrity-api.asciidoc:25

[source, python]
----
resp = client.snapshot.create(
repository="my_repository",
snapshot="_verify_integrity",
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/84c69fb07050f0e89720007a6507a221.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/high-cpu-usage.asciidoc:95
// troubleshooting/common-issues/high-cpu-usage.asciidoc:114

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:208
// tab-widgets/inference-api/infer-api-task.asciidoc:216

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/861f5f61409dc87f3671293b87839ff7.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cluster/stats.asciidoc:1314
// cluster/stats.asciidoc:1450

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "mistral-embeddings",
"pipeline": "mistral_embeddings"
"pipeline": "mistral_embeddings_pipeline"
},
)
print(resp)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/semantic-search-inference.asciidoc:89
// search/search-your-data/semantic-search-elser.asciidoc:157

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/935566d5426d44ade486a49ec5289741.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/semantic-search-semantic-text.asciidoc:128
// search/search-your-data/semantic-search-semantic-text.asciidoc:116

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/semantic-search-semantic-text.asciidoc:173
// search/search-your-data/semantic-search-semantic-text.asciidoc:162

[source, python]
----
resp = client.search(
index="semantic-embeddings",
query={
"semantic": {
"field": "semantic_text",
"field": "content",
"query": "How to avoid muscle soreness while running?"
}
},
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/9d396afad93782699d7a929578c85284.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:184
// tab-widgets/inference-api/infer-api-task.asciidoc:192

[source, python]
----
Expand Down
12 changes: 12 additions & 0 deletions docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:51

[source, python]
----
resp = client.tasks.list(
pretty=True,
human=True,
detailed=True,
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/a4ee2214d621bcfaf768c46d21325958.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:66
// tab-widgets/inference-api/infer-api-task.asciidoc:74

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/a594f05459d9eecc8050c73fc8da336f.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:121
// tab-widgets/inference-api/infer-api-task.asciidoc:129

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resp = client.reindex(
},
dest={
"index": "alibabacloud-ai-search-embeddings",
"pipeline": "alibabacloud_ai_search_embeddings"
"pipeline": "alibabacloud_ai_search_embeddings_pipeline"
},
)
print(resp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="azure_openai_embeddings",
id="azure_openai_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
8 changes: 8 additions & 0 deletions docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:80

[source, python]
----
resp = client.cluster.pending_tasks()
print(resp)
----
Loading
Loading