initial stage

This commit is contained in:
Giambattista Bloisi 2024-07-27 14:43:00 +02:00
parent 47665d151e
commit 792d069234
1 changed files with 114 additions and 117 deletions

View File

@ -1347,8 +1347,10 @@ def init_opensearch(os_client: OpenSearch):
})
try:
os_client.indices.get_index_template("training")
os_client.indices.delete_index_template("training")
except NotFoundError:
pass
os_client.indices.put_index_template(
name="training",
body={
@ -1430,12 +1432,7 @@ def init_opensearch(os_client: OpenSearch):
"type": "keyword"
},
"learningOutcomes": {
"type": "object",
"properties": {
"learningOutcome": {
"type": "text"
}
}
},
"learningResourceType": {
"type": "keyword"