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 128 additions and 0 deletions
Showing only changes of commit d21e492e1b - Show all commits

View File

@ -2,7 +2,6 @@ import otc_metadata
import argparse import argparse
import logging import logging
from opensearchpy import OpenSearch from opensearchpy import OpenSearch
import json
metadata = otc_metadata.Services() metadata = otc_metadata.Services()
@ -121,7 +120,6 @@ def create_index(client, index, data):
return client.index(index=index, body=data) return client.index(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])