Skip to content

Commit 135294f

Browse files
Use index template for update challenge
With this commit we use the proper index template for the bulk-update challenge. Previously neither the index template nor the custom index settings have been applied, resulting in a default index being created unintentionally. This issue has been discovered by the smoke test script that we have added in elastic#47 Relates elastic#50
1 parent b9a7c82 commit 135294f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

eventdata/challenges/bulk-update.json

+14-6
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@
1515
"index": "elasticlogs"
1616
}
1717
},
18+
{
19+
"operation": "delete-index-template"
20+
},
21+
{
22+
"operation": "create-index-template"
23+
},
1824
{
1925
"operation": {
2026
"operation-type": "create-index",
2127
"index": "elasticlogs",
22-
"settings": {
23-
{% if index_refresh_interval is defined %}
24-
"index.refresh_interval": {{ index_refresh_interval | int }},
25-
{% endif %}
26-
"index.number_of_replicas": {{ number_of_replicas }},
27-
"index.number_of_shards": {{ number_of_shards }}
28+
"body": {
29+
"settings": {
30+
{% if index_refresh_interval is defined %}
31+
"index.refresh_interval": {{ index_refresh_interval | int }},
32+
{% endif %}
33+
"index.number_of_replicas": {{ number_of_replicas }},
34+
"index.number_of_shards": {{ number_of_shards }}
35+
}
2836
}
2937
}
3038
},

0 commit comments

Comments
 (0)