initial stage
This commit is contained in:
parent
10c27e578d
commit
88076612b7
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue