Index Tool for Search #107

Merged
zuul merged 17 commits from index_search into main 2023-06-27 07:57:26 +00:00
4 changed files with 133 additions and 45 deletions
Showing only changes of commit 2aa0175b6e - Show all commits

View File

@ -2,6 +2,7 @@ import otc_metadata
import argparse
import logging
from opensearchpy import OpenSearch
import json
metadata = otc_metadata.Services()
@ -116,7 +117,7 @@ def generate_os_host_list(hosts):
def create_index(client, index, data):
return client.indices.create(index, body=data)
return client.indices.create(index, body=json.dumps(data))
def delete_index(client, index):