From ec9b19d77f757f5b68357c57a3949a9b0e2f17c3 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 10 May 2012 17:10:01 -0400 Subject: [PATCH] es fixes --- oyster/ext/elasticsearch.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/oyster/ext/elasticsearch.py b/oyster/ext/elasticsearch.py index 7087285..7f783f0 100644 --- a/oyster/ext/elasticsearch.py +++ b/oyster/ext/elasticsearch.py @@ -17,8 +17,7 @@ class ElasticSearchPush(Task): self.get_logger().debug('adding {0} to ElasticSearch'.format(doc_id)) - for i, piece in enumerate(pieces): - es.index(dict(doc['metadata'], text=text), - settings.ELASTICSEARCH_INDEX, - settings.ELASTICSEARCH_DOC_TYPE, - id=doc_id) + es.index(dict(doc['metadata'], text=text), + settings.ELASTICSEARCH_INDEX, + settings.ELASTICSEARCH_DOC_TYPE, + id=doc_id)