initial stage
This commit is contained in:
parent
47665d151e
commit
792d069234
|
@ -1347,8 +1347,10 @@ def init_opensearch(os_client: OpenSearch):
|
||||||
})
|
})
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os_client.indices.get_index_template("training")
|
os_client.indices.delete_index_template("training")
|
||||||
except NotFoundError:
|
except NotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
os_client.indices.put_index_template(
|
os_client.indices.put_index_template(
|
||||||
name="training",
|
name="training",
|
||||||
body={
|
body={
|
||||||
|
@ -1430,12 +1432,7 @@ def init_opensearch(os_client: OpenSearch):
|
||||||
"type": "keyword"
|
"type": "keyword"
|
||||||
},
|
},
|
||||||
"learningOutcomes": {
|
"learningOutcomes": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"learningOutcome": {
|
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"learningResourceType": {
|
"learningResourceType": {
|
||||||
"type": "keyword"
|
"type": "keyword"
|
||||||
|
|
Loading…
Reference in New Issue