opensearch-docs-cn/_benchmark/reference/workloads/indices.md

35 lines
721 B
Markdown
Raw Normal View History

2023-08-24 14:03:56 -04:00
---
layout: default
title: indices
parent: Workload reference
grand_parent: OpenSearch Benchmark Reference
2023-08-24 14:03:56 -04:00
nav_order: 65
redirect_from: /benchmark/workloads/indices/
2023-08-24 14:03:56 -04:00
---
<!-- vale off -->
# indices
<!-- vale on -->
2023-08-24 14:03:56 -04:00
The `indices` element contains a list of all indices used in the workload.
## Example
```json
"indices": [
{
"name": "geonames",
"body": "geonames-index.json",
}
]
```
## Configuration options
Use the following options with `indices`:
Parameter | Required | Type | Description
:--- | :--- | :--- | :---
`name` | Yes | String | The name of the index template.
`body` | No | String | The file name corresponding to the index definition used in the body of the Create Index API.