From dfb556a49fdeb3d5276380599db7f54c7f7f6364 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 16 May 2012 14:36:01 -0400 Subject: [PATCH] sometimes extract_text can't get text --- oyster/ext/elasticsearch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oyster/ext/elasticsearch.py b/oyster/ext/elasticsearch.py index ede9924..a52e61d 100644 --- a/oyster/ext/elasticsearch.py +++ b/oyster/ext/elasticsearch.py @@ -18,6 +18,9 @@ class ElasticSearchPush(Task): try: 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, extra={'doc_class':doc['doc_class']})