Index Tool for Search #107
@ -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])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user