Index Tool for Search #107
@ -2,7 +2,6 @@ import otc_metadata
|
||||
import argparse
|
||||
import logging
|
||||
from opensearchpy import OpenSearch
|
||||
import json
|
||||
|
||||
|
||||
metadata = otc_metadata.Services()
|
||||
@ -121,7 +120,6 @@ def create_index(client, index, data):
|
||||
return client.index(index=index, body=data)
|
||||
|
||||
|
||||
|
||||
def delete_index(client, index):
|
||||
return client.indices.delete(index=index, ignore=[400, 404])
|
||||
|
||||
|
Reference in New Issue
Block a user