-
Notifications
You must be signed in to change notification settings - Fork 157
Description
[Bug Report] Incorrect Rollover API Examples and Recommendations for Elasticsearch Serverless
https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-rollover
Description:
The current Elasticsearch Serverless Rollover API documentation contains examples and guidance that are not applicable in the Serverless context.
- Bug 1: Example uses unsupported rollover conditions
Issue:
The documentation provides an example using rollover conditions, such as:
POST my-data-stream/_rollover
{
"conditions": {
"max_age": "7d",
"max_docs": 1000,
"max_primary_shard_size": "50gb",
"max_primary_shard_docs": "2000"
}
}
However, when executed in Elasticsearch Serverless, this returns an error:
"rollover with conditions is not supported in serverless mode"
Suggested Fix:
Update the example to exclude conditions, as conditional rollover is not supported in Serverless.
- Bug2) Inaccurate Tip about ILM
ssue:
The page includes the tip:
"It is recommended to use the index lifecycle rollover action to automate rollovers."
However, Index Lifecycle Management (ILM) is not supported in Elasticsearch Serverless.
Suggested Fix:
Remove or revise this tip to avoid confusion for Serverless users.