Index Tool for Search #107

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

View File

@ -117,7 +117,9 @@ def generate_os_host_list(hosts):
def create_index(client, index, data): def create_index(client, index, data):
return client.indices.create(index=index, body=data) client.indices.create(index=index)
return client.index(index=index, body=data)
def delete_index(client, index): def delete_index(client, index):