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