diff --git a/tabellio/documents/indexer.py b/tabellio/documents/indexer.py index 35d7c86..934e574 100644 --- a/tabellio/documents/indexer.py +++ b/tabellio/documents/indexer.py @@ -1,3 +1,5 @@ +import logging + from zope.interface import Interface from ZODB.POSException import ConflictError from five import grok @@ -18,6 +20,9 @@ from document import IDocument from dossier import IDossier from question import IQuestion +log = logging.getLogger('Plone') + + def dateIndexer(obj): if obj.date is None: return None @@ -175,6 +180,7 @@ def document_dynamic_searchable_text_indexer(obj): # if there is no path to text/plain, do nothing transforms = getToolByName(obj, 'portal_transforms') if not transforms._findPath(data.contentType, 'text/plain'): + log.info(' limiting return to title and authors (2) (%s)' % data.contentType) return title_and_authors # convert it to text/plain