es fixes
This commit is contained in:
parent
0cddf437fb
commit
ec9b19d77f
@ -17,8 +17,7 @@ class ElasticSearchPush(Task):
|
|||||||
|
|
||||||
self.get_logger().debug('adding {0} to ElasticSearch'.format(doc_id))
|
self.get_logger().debug('adding {0} to ElasticSearch'.format(doc_id))
|
||||||
|
|
||||||
for i, piece in enumerate(pieces):
|
es.index(dict(doc['metadata'], text=text),
|
||||||
es.index(dict(doc['metadata'], text=text),
|
settings.ELASTICSEARCH_INDEX,
|
||||||
settings.ELASTICSEARCH_INDEX,
|
settings.ELASTICSEARCH_DOC_TYPE,
|
||||||
settings.ELASTICSEARCH_DOC_TYPE,
|
id=doc_id)
|
||||||
id=doc_id)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user