Skip to content

Commit 2958a6b

Browse files
committed
use proper index name
1 parent 773ac12 commit 2958a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index_emails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def create_index():
6363
def upload_batch(upload_data):
6464
upload_data_txt = ""
6565
for item in upload_data:
66-
cmd = {'index': {'_index': 'gmail', '_type': 'email', '_id': item['message-id']}}
66+
cmd = {'index': {'_index': tornado.options.options.index_name, '_type': 'email', '_id': item['message-id']}}
6767
upload_data_txt += json.dumps(cmd) + "\n"
6868
upload_data_txt += json.dumps(item) + "\n"
6969

0 commit comments

Comments
 (0)