initial stage

This commit is contained in:
Giambattista Bloisi 2024-07-27 14:46:40 +02:00
parent 10c27e578d
commit 88076612b7
1 changed files with 162 additions and 165 deletions

View File

@ -1172,8 +1172,10 @@ def init_opensearch(os_client: OpenSearch):
})
try:
os_client.indices.get_index_template("services")
os_client.indices.delete_index_template("services")
except NotFoundError:
pass
os_client.indices.put_index_template(
name="services",
body={
@ -1317,9 +1319,6 @@ def init_opensearch(os_client: OpenSearch):
"type": "keyword"
},
"useCases": {
"type": "object",
"properties": {
"useCase": {
"type": "object",
"properties": {
"useCaseName": {
@ -1329,8 +1328,6 @@ def init_opensearch(os_client: OpenSearch):
"type": "text"
}
}
}
}
},
"userManual": {
"type": "text"