Skip to content

Commit

Permalink
use proper index name
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Jan 21, 2015
1 parent 773ac12 commit 2958a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2958a6b

Please sign in to comment.