From 2958a6b0c893e1cd74d5930386cf1a0917868d77 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 20 Jan 2015 23:51:03 -0500 Subject: [PATCH] use proper index name --- src/index_emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index_emails.py b/src/index_emails.py index 113ee41..b3b4fc8 100644 --- a/src/index_emails.py +++ b/src/index_emails.py @@ -63,7 +63,7 @@ def create_index(): def upload_batch(upload_data): upload_data_txt = "" for item in upload_data: - cmd = {'index': {'_index': 'gmail', '_type': 'email', '_id': item['message-id']}} + cmd = {'index': {'_index': tornado.options.options.index_name, '_type': 'email', '_id': item['message-id']}} upload_data_txt += json.dumps(cmd) + "\n" upload_data_txt += json.dumps(item) + "\n"