initial stage
This commit is contained in:
parent
47665d151e
commit
792d069234
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue