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 7c866e7a43 - Show all commits

View File

@ -117,11 +117,11 @@ def generate_os_host_list(hosts):
def create_index(client, index, data): def create_index(client, index, data):
return client.indices.create(index, body=json.dumps(data)) return client.indices.create(index=index, body=data)
def delete_index(client, index): def delete_index(client, index):
return client.indices.delete(index=index, ignore=[400, 404]) return client.indices.delete(index=index, ignore=[400, 404])
main() main()