Fix Serverless create index API examples#6414
Conversation
Use Serverless-specific overlays so create index examples no longer reference stack-only number_of_shards and number_of_replicas settings. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Following you can find the validation changes against the target branch for the APIs. No changes detected. You can validate these APIs yourself by using the |
Remove existing x-codeSamples before updating them so bump does not merge stack-only shard settings with the Serverless examples. Co-authored-by: Cursor <cursoragent@cursor.com>
Override indicesCreateRequestExample3 so the aliases example no longer includes stack-only routing settings on Serverless. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@lcawl I see in IndexSettings.ts that Is the way I fixed this in this PR the best way to fix it, or is there some better automation that can remove these from examples ? Also, while working on this I realized that we refer to the following GLOBALLY_REJECTED_PARAMETERS in many places in the serverless specs: Can we fix this by tagging them as |
|
I think your PR is a good case for fixing the broader issue, so I've created #6446 instead. |
|
Superceded by #6446 |
Summary
number_of_shards,number_of_replicasandrouting.Test plan
make overlay-docsand verifyoutput/openapi/elasticsearch-serverless-openapi-docs-final.jsonno longer includes shard settings in create index examples.Made with Cursor