sometimes extract_text can't get text
This commit is contained in:
parent
1d441a8f86
commit
dfb556a49f
@ -18,6 +18,9 @@ class ElasticSearchPush(Task):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
text = kernel.extract_text(doc)
|
text = kernel.extract_text(doc)
|
||||||
|
if not text:
|
||||||
|
self.log.info('no text for %s', doc_id,
|
||||||
|
extra={'doc_class':doc['doc_class']})
|
||||||
|
|
||||||
self.log.info('tracked %s', doc_id,
|
self.log.info('tracked %s', doc_id,
|
||||||
extra={'doc_class':doc['doc_class']})
|
extra={'doc_class':doc['doc_class']})
|
||||||
|
Loading…
Reference in New Issue
Block a user