Skip to content

Commit 5e79ba9

Browse files
Merge branch 'main' into charlotte-cat-shards-api-h
2 parents 90cc280 + 0c77ae9 commit 5e79ba9

File tree

46 files changed

+4802
-294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4802
-294
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 468 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 256 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 1471 additions & 196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 57 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ data-stream-update,https://www.elastic.co/docs/api/doc/elasticsearch/operation/o
165165
data-streams,https://www.elastic.co/docs/manage-data/data-store/data-streams,
166166
date-index-name-processor,https://www.elastic.co/docs/reference/enrich-processor/date-index-name-processor,
167167
dcg,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-rank-eval#_discounted_cumulative_gain_dcg,
168+
deepseek-api-keys,https://api-docs.deepseek.com/,
168169
defining-roles,https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/defining-roles,
169170
delete-analytics-collection,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete-behavioral-analytics,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-analytics-collection.html
170171
delete-async-sql-search-api,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-delete-async,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-async-sql-search-api.html
@@ -354,6 +355,7 @@ inference-api-put-anthropic,https://www.elastic.co/docs/api/doc/elasticsearch/op
354355
inference-api-put-azureaistudio,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureaistudio,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-azure-ai-studio.html
355356
inference-api-put-azureopenai,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-azure-openai.html
356357
inference-api-put-cohere,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-cohere,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-cohere.html
358+
inference-api-put-deepseek,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-deepseek,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-deepseek.html
357359
inference-api-put-eis,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-eis,
358360
inference-api-put-elasticsearch,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elasticsearch,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-elasticsearch.html
359361
inference-api-put-elser,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elser,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/infer-service-elser.html
@@ -612,6 +614,7 @@ retrieve-stored-fields,https://www.elastic.co/docs/reference/elasticsearch/rest-
612614
role-restriction,https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/role-restriction,
613615
rollup-agg-limitations,https://www.elastic.co/docs/manage-data/lifecycle/rollup/rollup-aggregation-limitations,
614616
rollup-delete-job,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-delete-job,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-delete-job.html
617+
rollup-examples,https://www.elastic.co/docs/manage-data/lifecycle/rollup/getting-started-api#historical-only-search-example,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-search.html#rollup-search-example
615618
rollup-get-job,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-jobs,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-job.html
616619
rollup-get-rollup-caps,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-rollup-caps,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-rollup-caps.html
617620
rollup-get-rollup-index-caps,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-rollup-index-caps,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-rollup-index-caps.html
@@ -874,6 +877,7 @@ stop-dfanalytics,https://www.elastic.co/docs/api/doc/elasticsearch/operation/ope
874877
stop-trained-model-deployment,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-trained-model-deployment,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/stop-trained-model-deployment.html
875878
stop-transform,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/stop-transform.html
876879
stored-fields,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#stored-fields,
880+
synonym-api-examples,https://www.elastic.co/docs/solutions/search/full-text/create-update-synonyms-api-example,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-synonyms-set.html
877881
synonym-rule-create,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-synonym-rule.html
878882
synonym-rule-delete,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-synonym-rule.html
879883
synonym-rule-get,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-synonym-rule.html
@@ -892,8 +896,10 @@ test-grok-pattern,https://www.elastic.co/docs/api/doc/elasticsearch/operation/op
892896
time-value,https://github.com/elastic/elasticsearch/blob/current/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java,
893897
time-zone-id,https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html,
894898
trim-processor,https://www.elastic.co/docs/reference/enrich-processor/trim-processor,
899+
update-by-query,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-by-query-api,
895900
update-dfanalytics,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-dfanalytics.html
896901
update-desired-nodes,https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cluster,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster.html
902+
update-document,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-document,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-update.html#update-api-example
897903
update-license,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-license.html
898904
update-trained-model-deployment,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-trained-model-deployment,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-trained-model-deployment.html
899905
update-transform,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-update-transform,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-transform.html
@@ -924,4 +930,4 @@ watcher-api-update-settings,https://www.elastic.co/docs/api/doc/elasticsearch/op
924930
watsonx-api-keys,https://cloud.ibm.com/iam/apikeys,
925931
watsonx-api-models,https://www.ibm.com/products/watsonx-ai/foundation-models,
926932
watsonx-api-version,https://cloud.ibm.com/apidocs/watsonx-ai#active-version-dates,
927-
xpack-rollup,https://www.elastic.co/docs/manage-data/lifecycle/rollup,
933+
xpack-rollup,https://www.elastic.co/docs/manage-data/lifecycle/rollup,
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
summary: Reindex with Painless
2+
method_request: POST _reindex
3+
description: >
4+
You can use Painless to reindex daily indices to apply a new template to the existing documents. The script extracts the date from
5+
the index name and creates a new index with `-1` appended. For example, all data from `metricbeat-2016.05.31` will be reindexed
6+
into `metricbeat-2016.05.31-1`.
7+
# type: request
8+
value: "{
9+
10+
\ \"source\": {
11+
12+
\ \"index\": \"metricbeat-*\"
13+
14+
\ },
15+
16+
\ \"dest\": {
17+
18+
\ \"index\": \"metricbeat\"
19+
20+
\ },
21+
22+
\ \"script\": {
23+
24+
\ \"lang\": \"painless\",
25+
26+
\ \"source\": \"ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'\"
27+
28+
\ }
29+
30+
}"
31+
alternatives:
32+
- language: Python
33+
code: |-
34+
resp = client.reindex(
35+
source={
36+
"index": "metricbeat-*"
37+
},
38+
dest={
39+
"index": "metricbeat"
40+
},
41+
script={
42+
"lang": "painless",
43+
"source": "ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'"
44+
},
45+
)
46+
- language: JavaScript
47+
code: |-
48+
const response = await client.reindex({
49+
source: {
50+
index: "metricbeat-*",
51+
},
52+
dest: {
53+
index: "metricbeat",
54+
},
55+
script: {
56+
lang: "painless",
57+
source:
58+
"ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'",
59+
},
60+
});
61+
- language: Ruby
62+
code: |-
63+
response = client.reindex(
64+
body: {
65+
"source": {
66+
"index": "metricbeat-*"
67+
},
68+
"dest": {
69+
"index": "metricbeat"
70+
},
71+
"script": {
72+
"lang": "painless",
73+
"source": "ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'"
74+
}
75+
}
76+
)
77+
- language: PHP
78+
code: >-
79+
$resp = $client->reindex([
80+
"body" => [
81+
"source" => [
82+
"index" => "metricbeat-*",
83+
],
84+
"dest" => [
85+
"index" => "metricbeat",
86+
],
87+
"script" => [
88+
"lang" => "painless",
89+
"source" => "ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'",
90+
],
91+
],
92+
]);
93+
- language: curl
94+
code:
95+
"curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d
96+
'{\"source\":{\"index\":\"metricbeat-*\"},\"dest\":{\"index\":\"metricbeat\"},\"script\":{\"lang\":\"painless\",\"source\":\"\
97+
ctx._index = '\"'\"'metricbeat-'\"'\"' + (ctx._index.substring('\"'\"'metricbeat-'\"'\"'.length(), ctx._index.length())) +
98+
'\"'\"'-1'\"'\"'\"}}' \"$ELASTICSEARCH_URL/_reindex\""

0 commit comments

Comments
 (0)